Merge pull request #147930 from bcdarwin/pydicom-setuptools-dep

python3Packages.pydicom: add missing setuptools runtime dependency
This commit is contained in:
Fabian Affolter 2021-11-30 00:02:21 +01:00 committed by GitHub
commit ee3e468e15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,11 +2,11 @@
, stdenv
, buildPythonPackage
, fetchFromGitHub
, isPy27
, pytest-runner
, pythonOlder
, pytestCheckHook
, numpy
, pillow
, setuptools
}:
let
@ -20,7 +20,7 @@ let
sha256 = "sha256-iExy+mUs1uqs/u9N6btlqyP6/TvoPVsuOuzs56zZAS8=";
};
# Pydicom needs pydicom-data to run some tests. If these files are downloaded
# Pydicom needs pydicom-data to run some tests. If these files aren't downloaded
# before the package creation, it'll try to download during the checkPhase.
test_data = fetchFromGitHub {
owner = "${pname}";
@ -32,11 +32,11 @@ let
in
buildPythonPackage {
inherit pname version src;
disabled = isPy27;
disabled = pythonOlder "3.6";
propagatedBuildInputs = [ numpy pillow ];
propagatedBuildInputs = [ numpy pillow setuptools ];
checkInputs = [ pytest-runner pytestCheckHook ];
checkInputs = [ pytestCheckHook ];
# Setting $HOME to prevent pytest to try to create a folder inside
# /homeless-shelter which is read-only.