python2.pkgs.jaraco_functools: keep at 2.0 for python 2
This commit is contained in:
parent
b1d78acc03
commit
91e035056a
25
pkgs/development/python-modules/jaraco_functools/2.nix
Normal file
25
pkgs/development/python-modules/jaraco_functools/2.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
@ -7037,7 +7037,10 @@ in {
|
|||||||
|
|
||||||
morphys = callPackage ../development/python-modules/morphys { };
|
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 { };
|
jaraco_classes = callPackage ../development/python-modules/jaraco_classes { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user