python3.pkgs.zimports: add missing setuptools (#90026)

Co-authored-by: Jon <jonringer@users.noreply.github.com>
This commit is contained in:
Jörg Thalheim 2020-06-21 20:06:39 +01:00 committed by GitHub
parent b5dc9f6ba7
commit db7e2b484b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@
, flake8-import-order , flake8-import-order
, pyflakes , pyflakes
, mock , mock
, setuptools
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -23,12 +24,19 @@ buildPythonPackage rec {
propagatedBuildInputs = [ propagatedBuildInputs = [
pyflakes pyflakes
flake8-import-order flake8-import-order
setuptools
]; ];
checkInputs = [ checkInputs = [
mock mock
]; ];
checkPhase = ''
runHook preInstallCheck
PYTHONPATH= $out/bin/zimports --help >/dev/null
runHook postInstallCheck
'';
meta = with lib; { meta = with lib; {
description = "Python import rewriter"; description = "Python import rewriter";
homepage = "https://github.com/sqlalchemyorg/zimports"; homepage = "https://github.com/sqlalchemyorg/zimports";