diff options
author | Benjamin Hipple <bhipple@protonmail.com> | 2020-07-04 12:33:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-04 12:33:11 -0400 |
commit | 0eabb1b7793cdcbddef4f8635514781e3ca28347 (patch) | |
tree | 3e55d73b2939fa44323940b9d1b1dc35da8e9525 | |
parent | e747fc91fa367cf7a4b578f945313d7976677a36 (diff) | |
parent | 7e6e87e7eb79437c4d12877d620fb7ee043fd58f (diff) |
Merge pull request #92277 from jonringer/fix-pipdate
python3Packages.pipdate: fix dependency management
-rw-r--r-- | pkgs/development/python-modules/pipdate/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pipdate/default.nix b/pkgs/development/python-modules/pipdate/default.nix index 4e730df1c91d2..5cc5789144f65 100644 --- a/pkgs/development/python-modules/pipdate/default.nix +++ b/pkgs/development/python-modules/pipdate/default.nix @@ -1,8 +1,10 @@ { lib , buildPythonPackage , fetchPypi +, pythonOlder , isPy27 , appdirs +, importlib-metadata , requests , pytest }: @@ -20,8 +22,16 @@ buildPythonPackage rec { propagatedBuildInputs = [ appdirs 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 = [ pytest ]; |