python2Packages.cachetools: restore 3.1.1 for python2

This commit is contained in:
Frederik Rietdijk 2020-01-05 15:40:23 +01:00
parent dc911b165b
commit 444a6b8d9e
2 changed files with 11 additions and 2 deletions

View File

@ -3,7 +3,6 @@
buildPythonPackage rec {
pname = "cachetools";
version = "4.0.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;

View File

@ -4392,7 +4392,17 @@ in {
rfc3986 = callPackage ../development/python-modules/rfc3986 { };
cachetools = callPackage ../development/python-modules/cachetools {};
cachetools = let
cachetools' = callPackage ../development/python-modules/cachetools {};
cachetools_2 = cachetools'.overridePythonAttrs(oldAttrs: rec {
version = "3.1.1";
src = oldAttrs.src.override {
inherit version;
sha256 = "16m69l6n6y1r1y7cklm92rr7v69ldig2n3lbl3j323w5jz7d78lf";
};
});
in if isPy3k then cachetools' else cachetools_2;
cma = callPackage ../development/python-modules/cma { };