From 31037bab49848e3e8d9fe9ab9e1d716f18fbdcf3 Mon Sep 17 00:00:00 2001 From: Rodney Lorrimar Date: Wed, 13 Sep 2017 00:54:52 +0100 Subject: 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. --- pkgs/development/python-modules/cachetools/1.nix | 18 ++++++++++++++++++ pkgs/development/python-modules/cachetools/default.nix | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/development/python-modules/cachetools/1.nix create mode 100644 pkgs/development/python-modules/cachetools/default.nix (limited to 'pkgs/development/python-modules/cachetools') 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; + }; +} -- cgit 1.4.1