diff options
author | IvarWithoutBones <ivar.scholten@protonmail.com> | 2020-12-14 03:11:30 +0100 |
---|---|---|
committer | IvarWithoutBones <ivar.scholten@protonmail.com> | 2020-12-14 03:11:30 +0100 |
commit | 3017f4f757571bc9d66a20558da2f9c562ccfecc (patch) | |
tree | 7f2d8cbad425630cb8ca279af707957fbaacfd21 | |
parent | 8805a49d9873d63bced3f41b03e19af210c67a08 (diff) |
pythonPackages.clize: fix build
-rw-r--r-- | pkgs/development/python-modules/clize/default.nix | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/clize/default.nix b/pkgs/development/python-modules/clize/default.nix index 72b6a2fa30ae5..e2ef3ea5bb1c5 100644 --- a/pkgs/development/python-modules/clize/default.nix +++ b/pkgs/development/python-modules/clize/default.nix @@ -10,7 +10,7 @@ , repeated_test , pygments , unittest2 -, pytest +, pytestCheckHook }: buildPythonPackage rec { @@ -22,12 +22,17 @@ buildPythonPackage rec { sha256 = "f54dedcf6fea90a3e75c30cb65e0ab1e832760121f393b8d68edd711dbaf7187"; }; + # Remove overly restrictive version constraints + postPatch = '' + substituteInPlace setup.py --replace "attrs>=19.1.0,<20" "attrs" + ''; + checkInputs = [ + pytestCheckHook dateutil pygments repeated_test unittest2 - pytest ]; propagatedBuildInputs = [ @@ -38,14 +43,11 @@ buildPythonPackage rec { six ]; - checkPhase = '' - pytest - ''; + pythonImportsCheck = [ "clize" ]; meta = with stdenv.lib; { description = "Command-line argument parsing for Python"; homepage = "https://github.com/epsy/clize"; license = licenses.mit; }; - } |