1{ lib
2, buildPythonPackage
3, fetchPypi
4, setuptools-scm
5, isPy3k
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "backports.functools_lru_cache";
11 version = "1.6.4";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "d5ed2169378b67d3c545e5600d363a923b09c456dab1593914935a68ad478271";
16 };
17
18 nativeBuildInputs = [ setuptools-scm ];
19
20 nativeCheckInputs = [ pytestCheckHook ];
21
22 # Test fail on Python 2
23 doCheck = isPy3k;
24
25 pythonNamespaces = [ "backports" ];
26
27 meta = {
28 description = "Backport of functools.lru_cache";
29 homepage = "https://github.com/jaraco/backports.functools_lru_cache";
30 license = lib.licenses.mit;
31 };
32}