1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

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 { };