From 16d475334409f7fa632929b2838421b4ffe34927 Mon Sep 17 00:00:00 2001 From: Benjamin Hipple Date: Wed, 15 Aug 2018 05:02:55 -0400 Subject: [PATCH] pythonPackages.fastcache: init at 1.0.2 (#45048) --- .../python-modules/fastcache/default.nix | 20 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/development/python-modules/fastcache/default.nix diff --git a/pkgs/development/python-modules/fastcache/default.nix b/pkgs/development/python-modules/fastcache/default.nix new file mode 100644 index 000000000000..5638e8412b56 --- /dev/null +++ b/pkgs/development/python-modules/fastcache/default.nix @@ -0,0 +1,20 @@ +{ lib, buildPythonPackage, fetchPypi, pytest }: + +buildPythonPackage rec { + pname = "fastcache"; + version = "1.0.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "1rl489zfbm2x67n7i6r7r4nhrhwk6yz3yc7x9y2rky8p95vhaw46"; + }; + + checkInputs = [ pytest ]; + + meta = with lib; { + description = "C implementation of Python3 lru_cache for Python 2 and 3"; + homepage = https://github.com/pbrady/fastcache; + license = licenses.mit; + maintainers = [ maintainers.bhipple ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b1d2a6cbd0b2..1546df815b90 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2537,6 +2537,8 @@ in { }; }; + fastcache = callPackage ../development/python-modules/fastcache { }; + functools32 = if isPy3k then null else buildPythonPackage rec { name = "functools32-${version}"; version = "3.2.3-2";