diff options
Diffstat (limited to 'pkgs/development/python-modules/zimports')
-rw-r--r-- | pkgs/development/python-modules/zimports/default.nix | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/zimports/default.nix b/pkgs/development/python-modules/zimports/default.nix index dc9a618924058..20e23afcfc016 100644 --- a/pkgs/development/python-modules/zimports/default.nix +++ b/pkgs/development/python-modules/zimports/default.nix @@ -6,22 +6,24 @@ , pyflakes , tomli , setuptools -, mock +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "zimports"; - version = "0.5.0"; + version = "0.6.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "sqlalchemyorg"; repo = "zimports"; - rev = "v${version}"; - sha256 = "sha256-O8MHUt9yswL9fK9pEddkvnNS2E4vWA/S1BTs1OD1VbU="; + rev = "refs/tags/v${version}"; + hash = "sha256-qm5mA8pCSLbkupGBo+ppHSW6uy1j/FfV3idvGQGhjqU="; }; - disabled = !isPy3k; - propagatedBuildInputs = [ flake8-import-order pyflakes @@ -30,14 +32,12 @@ buildPythonPackage rec { ]; checkInputs = [ - mock + pytestCheckHook ]; - checkPhase = '' - runHook preInstallCheck - PYTHONPATH= $out/bin/zimports --help >/dev/null - runHook postInstallCheck - ''; + pythonImportsCheck = [ + "zimports" + ]; meta = with lib; { description = "Python import rewriter"; |