diff --git a/overrides/build-systems.json b/overrides/build-systems.json index 2ee706ae5..4a69e1aff 100644 --- a/overrides/build-systems.json +++ b/overrides/build-systems.json @@ -2288,7 +2288,14 @@ "setuptools" ], "blinker": [ - "setuptools" + { + "buildSystem": "setuptools", + "until": "1.6.3" + }, + { + "buildSystem": "flit-core", + "from": "1.6.3" + } ], "blinkpy": [ "setuptools" diff --git a/tests/blinker-1_6_2/default.nix b/tests/blinker-1_6_2/default.nix new file mode 100644 index 000000000..4aed994a9 --- /dev/null +++ b/tests/blinker-1_6_2/default.nix @@ -0,0 +1,10 @@ +{ poetry2nix, runCommand }: +let + env = poetry2nix.mkPoetryEnv { + projectDir = ./.; + }; +in +runCommand "blinker-test" { } '' + ${env}/bin/python -c 'import blinker' + touch $out +'' diff --git a/tests/blinker-1_6_2/poetry.lock b/tests/blinker-1_6_2/poetry.lock new file mode 100644 index 000000000..5894951ce --- /dev/null +++ b/tests/blinker-1_6_2/poetry.lock @@ -0,0 +1,18 @@ +# This file is automatically @generated by Poetry 1.4.2 and should not be changed by hand. + +[[package]] +name = "blinker" +version = "1.6.2" +description = "Fast, simple object-to-object and broadcast signaling" +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "blinker-1.6.2-py3-none-any.whl", hash = "sha256:c3d739772abb7bc2860abf5f2ec284223d9ad5c76da018234f6f50d6f31ab1f0"}, + {file = "blinker-1.6.2.tar.gz", hash = "sha256:4afd3de66ef3a9f8067559fb7a1cbe555c17dcbe15971b05d1b625c3e7abe213"}, +] + +[metadata] +lock-version = "2.0" +python-versions = "^3.10" +content-hash = "1dcdde0c234dd281f25eb0b186df448fc07674e199f9b37c827dc62dcadb1d5b" diff --git a/tests/blinker-1_6_2/pyproject.toml b/tests/blinker-1_6_2/pyproject.toml new file mode 100644 index 000000000..462c00459 --- /dev/null +++ b/tests/blinker-1_6_2/pyproject.toml @@ -0,0 +1,13 @@ +[tool.poetry] +name = "blinker-test" +version = "0.1.0" +description = "" +authors = ["Your Name "] + +[tool.poetry.dependencies] +python = "^3.10" +blinker = "<1.6.3" + +[build-system] +requires = ["poetry-core>=1.1"] +build-backend = "poetry.core.masonry.api" diff --git a/tests/blinker/default.nix b/tests/blinker/default.nix new file mode 100644 index 000000000..4aed994a9 --- /dev/null +++ b/tests/blinker/default.nix @@ -0,0 +1,10 @@ +{ poetry2nix, runCommand }: +let + env = poetry2nix.mkPoetryEnv { + projectDir = ./.; + }; +in +runCommand "blinker-test" { } '' + ${env}/bin/python -c 'import blinker' + touch $out +'' diff --git a/tests/blinker/poetry.lock b/tests/blinker/poetry.lock new file mode 100644 index 000000000..bd19a76d2 --- /dev/null +++ b/tests/blinker/poetry.lock @@ -0,0 +1,18 @@ +# This file is automatically @generated by Poetry 1.4.2 and should not be changed by hand. + +[[package]] +name = "blinker" +version = "1.6.3" +description = "Fast, simple object-to-object and broadcast signaling" +category = "main" +optional = false +python-versions = ">=3.7" +files = [ + {file = "blinker-1.6.3-py3-none-any.whl", hash = "sha256:296320d6c28b006eb5e32d4712202dbcdcbf5dc482da298c2f44881c43884aaa"}, + {file = "blinker-1.6.3.tar.gz", hash = "sha256:152090d27c1c5c722ee7e48504b02d76502811ce02e1523553b4cf8c8b3d3a8d"}, +] + +[metadata] +lock-version = "2.0" +python-versions = "^3.10" +content-hash = "569fc52da060bbd7bec2b0cd95874bb8abdd82ca9a827526bf29e01072745591" diff --git a/tests/blinker/pyproject.toml b/tests/blinker/pyproject.toml new file mode 100644 index 000000000..e21c807c0 --- /dev/null +++ b/tests/blinker/pyproject.toml @@ -0,0 +1,13 @@ +[tool.poetry] +name = "blinker-test" +version = "0.1.0" +description = "" +authors = ["Your Name "] + +[tool.poetry.dependencies] +python = "^3.10" +blinker = "*" + +[build-system] +requires = ["poetry-core>=1.1"] +build-backend = "poetry.core.masonry.api" diff --git a/tests/default.nix b/tests/default.nix index 9cd0bb899..4a7fb1e24 100644 --- a/tests/default.nix +++ b/tests/default.nix @@ -64,6 +64,8 @@ in inherit (poetry2nix) cli; ansible-molecule = callTest ./ansible-molecule { }; + blinker-1_6_2 = callTest ./blinker-1_6_2 { }; + blinker = callTest ./blinker { }; bcrypt = callTest ./bcrypt { }; mk-poetry-packages = callTest ./mk-poetry-packages { }; markupsafe2 = callTest ./markupsafe2 { };