python3Packages.pipdate: fix dependency management
This commit is contained in:
parent
b19523ba23
commit
7e6e87e7eb
@ -1,8 +1,10 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, pythonOlder
|
||||||
, isPy27
|
, isPy27
|
||||||
, appdirs
|
, appdirs
|
||||||
|
, importlib-metadata
|
||||||
, requests
|
, requests
|
||||||
, pytest
|
, pytest
|
||||||
}:
|
}:
|
||||||
@ -20,8 +22,16 @@ buildPythonPackage rec {
|
|||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
appdirs
|
appdirs
|
||||||
requests
|
requests
|
||||||
|
] ++ lib.optionals (pythonOlder "3.8") [
|
||||||
|
importlib-metadata
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# can be removed when https://github.com/nschloe/pipdate/pull/41 gets merged
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.cfg \
|
||||||
|
--replace "importlib_metadata" "importlib_metadata; python_version < \"3.8\""
|
||||||
|
'';
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytest
|
pytest
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user