diff options
Diffstat (limited to 'pkgs/development/python-modules/gentools')
| -rw-r--r-- | pkgs/development/python-modules/gentools/default.nix | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/gentools/default.nix b/pkgs/development/python-modules/gentools/default.nix index 8fbf4a788fe9..6d2ae215eafa 100644 --- a/pkgs/development/python-modules/gentools/default.nix +++ b/pkgs/development/python-modules/gentools/default.nix @@ -1,11 +1,10 @@ { lib , buildPythonPackage , fetchFromGitHub +, importlib-metadata , poetry-core , pytestCheckHook , pythonOlder -, typing ? null -, funcsigs ? null }: buildPythonPackage rec { @@ -13,6 +12,8 @@ buildPythonPackage rec { version = "1.2.1"; pyproject = true; + disabled = pythonOlder "3.7"; + src = fetchFromGitHub { owner = "ariebovenberg"; repo = "gentools"; @@ -20,15 +21,21 @@ buildPythonPackage rec { hash = "sha256-RBUIji3FOIRjfp4t7zBAVSeiWaYufz4ID8nTWmhDkf8="; }; - nativeBuildInputs = [ poetry-core ]; + nativeBuildInputs = [ + poetry-core + ]; - propagatedBuildInputs = - lib.optionals (pythonOlder "3.5") [ typing ] ++ - lib.optionals (pythonOlder "3.4") [ funcsigs ]; + propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [ + importlib-metadata + ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytestCheckHook + ]; - pythonImportCheck = [ "gentools" ]; + pythonImportCheck = [ + "gentools" + ]; meta = with lib; { description = "Tools for generators, generator functions, and generator-based coroutines"; |
