From d9984214d81e7b535f2240147d1f41404c2b5c75 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 12 Oct 2024 11:37:02 +0200 Subject: [PATCH 1/2] python312Packages.hypothesis-auto: relax dependencies --- .../python-modules/hypothesis-auto/default.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/hypothesis-auto/default.nix b/pkgs/development/python-modules/hypothesis-auto/default.nix index eca2ca101457..7dcaf5cd0578 100644 --- a/pkgs/development/python-modules/hypothesis-auto/default.nix +++ b/pkgs/development/python-modules/hypothesis-auto/default.nix @@ -5,7 +5,6 @@ hypothesis, poetry-core, pydantic, - pytest, pytestCheckHook, pythonOlder, }: @@ -13,7 +12,7 @@ buildPythonPackage rec { pname = "hypothesis-auto"; version = "1.1.5"; - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.6"; @@ -23,12 +22,16 @@ buildPythonPackage rec { hash = "sha256-U0vcOB9jXmUV5v2IwybVu2arY1FpPnKkP7m2kbD1kRw="; }; - nativeBuildInputs = [ poetry-core ]; + pythonRelaxDeps = [ + "hypothesis" + "pydantic" + ]; - propagatedBuildInputs = [ - pydantic + build-system = [ poetry-core ]; + + dependencies = [ hypothesis - pytest + pydantic ]; pythonImportsCheck = [ "hypothesis_auto" ]; @@ -38,6 +41,7 @@ buildPythonPackage rec { meta = with lib; { description = "Enables fully automatic tests for type annotated functions"; homepage = "https://github.com/timothycrosley/hypothesis-auto/"; + changelog = "https://github.com/timothycrosley/hypothesis-auto/blob/master/CHANGELOG.md"; license = licenses.mit; maintainers = [ ]; }; From 76e8a95910cfecfe4409125cb99485c787540eeb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 12 Oct 2024 11:39:50 +0200 Subject: [PATCH 2/2] python312Packages.hypothesis-auto: add optional-dependencies --- pkgs/development/python-modules/hypothesis-auto/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/hypothesis-auto/default.nix b/pkgs/development/python-modules/hypothesis-auto/default.nix index 7dcaf5cd0578..13457576cdb4 100644 --- a/pkgs/development/python-modules/hypothesis-auto/default.nix +++ b/pkgs/development/python-modules/hypothesis-auto/default.nix @@ -5,6 +5,7 @@ hypothesis, poetry-core, pydantic, + pytest, pytestCheckHook, pythonOlder, }: @@ -34,6 +35,10 @@ buildPythonPackage rec { pydantic ]; + optional-dependencies = { + pytest = [ pytest ]; + }; + pythonImportsCheck = [ "hypothesis_auto" ]; nativeCheckInputs = [ pytestCheckHook ];