python2.pkgs.jaraco_functools: keep at 2.0 for python 2

This commit is contained in:
Frederik Rietdijk 2020-06-07 09:50:43 +02:00
parent b1d78acc03
commit 91e035056a
2 changed files with 29 additions and 1 deletions

View file

@ -0,0 +1,25 @@
{ lib, buildPythonPackage, fetchPypi
, setuptools_scm
, more-itertools, backports_functools_lru_cache }:
buildPythonPackage rec {
pname = "jaraco.functools";
version = "2.0";
src = fetchPypi {
inherit pname version;
sha256 = "0ickpwvvdrlbm477gdzfjfcbgmfia9ksm9a3i3pbx9xia97r9fim";
};
propagatedBuildInputs = [ more-itertools backports_functools_lru_cache ];
doCheck = false;
buildInputs = [ setuptools_scm ];
meta = with lib; {
description = "Additional functools in the spirit of stdlib's functools";
homepage = "https://github.com/jaraco/jaraco.functools";
license = licenses.mit;
};
}

View file

@ -7037,7 +7037,10 @@ in {
morphys = callPackage ../development/python-modules/morphys { };
jaraco_functools = callPackage ../development/python-modules/jaraco_functools { };
jaraco_functools = if pythonOlder "3.6" then
callPackage ../development/python-modules/jaraco_functools/2.nix { }
else
callPackage ../development/python-modules/jaraco_functools { };
jaraco_classes = callPackage ../development/python-modules/jaraco_classes { };