about summary refs log tree commit diff
path: root/pkgs/development/python-modules/cachetools
diff options
context:
space:
mode:
authorRodney Lorrimar <dev@rodney.id.au>2017-09-13 00:54:52 +0100
committerRodney Lorrimar <dev@rodney.id.au>2017-09-16 09:23:15 +0100
commit31037bab49848e3e8d9fe9ab9e1d716f18fbdcf3 (patch)
treef4b55d68ed93229ed5e238ebd77e4cf257316b3c /pkgs/development/python-modules/cachetools
parent151d0fde1979216caf21d5e96131ca6fd4f663e8 (diff)
pythonPackages.cachetools: Add version 2.0.1
Textacy requires a later version.

v2.0.0 introduced breaking changes, so keep two versions for other
packages.
Diffstat (limited to 'pkgs/development/python-modules/cachetools')
-rw-r--r--pkgs/development/python-modules/cachetools/1.nix18
-rw-r--r--pkgs/development/python-modules/cachetools/default.nix18
2 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/cachetools/1.nix b/pkgs/development/python-modules/cachetools/1.nix
new file mode 100644
index 0000000000000..edfe965fa8003
--- /dev/null
+++ b/pkgs/development/python-modules/cachetools/1.nix
@@ -0,0 +1,18 @@
+{ stdenv, buildPythonPackage, fetchPypi, isPyPy }:
+
+buildPythonPackage rec {
+  name = "${pname}-${version}";
+  pname = "cachetools";
+  version = "1.1.3";
+  disabled = isPyPy;  # a test fails
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0js7qx5pa8ibr8487lcf0x3a7w0xml0wa17snd6hjs0857kqhn20";
+  };
+
+  meta = with stdenv.lib; {
+    homepage = "https://github.com/tkem/cachetools";
+    license = licenses.mit;
+  };
+}
diff --git a/pkgs/development/python-modules/cachetools/default.nix b/pkgs/development/python-modules/cachetools/default.nix
new file mode 100644
index 0000000000000..fe69768c976a1
--- /dev/null
+++ b/pkgs/development/python-modules/cachetools/default.nix
@@ -0,0 +1,18 @@
+{ stdenv, buildPythonPackage, fetchPypi, isPyPy }:
+
+buildPythonPackage rec {
+  name = "${pname}-${version}";
+  pname = "cachetools";
+  version = "2.0.1";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0pdw2fr29pxlyn1g5fhdrrqbpn0iw062nv716ngdqvdx7hnizq7d";
+  };
+
+  meta = with stdenv.lib; {
+    description = "Extensible memoizing collections and decorators";
+    homepage = "https://github.com/tkem/cachetools";
+    license = licenses.mit;
+  };
+}