Skip to content

Commit

Permalink
overrides: add cattrs 23.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
apeschar authored and adisbladis committed Nov 24, 2023
1 parent 111c364 commit c819fba
Show file tree
Hide file tree
Showing 8 changed files with 208 additions and 2 deletions.
14 changes: 12 additions & 2 deletions overrides/build-systems.json
Original file line number Diff line number Diff line change
Expand Up @@ -2970,8 +2970,18 @@
"setuptools"
],
"cattrs": [
"poetry-core",
"setuptools"
{
"buildSystem": "poetry-core",
"until": "23.2"
},
{
"buildSystem": "setuptools",
"until": "23.2"
},
{
"buildSystem": "hatch-vcs",
"from": "23.2"
}
],
"cbeams": [
"setuptools"
Expand Down
10 changes: 10 additions & 0 deletions tests/cattrs-pre-23-2/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{ poetry2nix, runCommand }:
let
env = poetry2nix.mkPoetryEnv {
projectDir = ./.;
};
in
runCommand "cattrs-test" { } ''
${env}/bin/python -c 'import cattrs'
touch $out
''
74 changes: 74 additions & 0 deletions tests/cattrs-pre-23-2/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions tests/cattrs-pre-23-2/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[tool.poetry]
name = "cattrs-test"
version = "0.1.0"
description = ""
authors = ["Your Name <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.10"
cattrs = "23.1.2"

[build-system]
requires = ["poetry-core>=1.1"]
build-backend = "poetry.core.masonry.api"
10 changes: 10 additions & 0 deletions tests/cattrs/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{ poetry2nix, runCommand }:
let
env = poetry2nix.mkPoetryEnv {
projectDir = ./.;
};
in
runCommand "cattrs-test" { } ''
${env}/bin/python -c 'import cattrs'
touch $out
''
74 changes: 74 additions & 0 deletions tests/cattrs/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions tests/cattrs/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[tool.poetry]
name = "cattrs-test"
version = "0.1.0"
description = ""
authors = ["Your Name <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.10"
cattrs = "*"

[build-system]
requires = ["poetry-core>=1.1"]
build-backend = "poetry.core.masonry.api"
2 changes: 2 additions & 0 deletions tests/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ in

affine = callTest ./affine { };
affine-pre-2-4 = callTest ./affine-pre-2-4 { };
cattrs = callTest ./cattrs { };
cattrs-pre-23-2 = callTest ./cattrs-pre-23-2 { };
cdk-nag = callTest ./cdk-nag { };
arrow = callTest ./arrow { };
gdal = callTest ./gdal { };
Expand Down

0 comments on commit c819fba

Please sign in to comment.