blob: 2a8b5e7960d469b1f65d13ab36b54a1c5e1c0064 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{ lib
, buildPythonPackage
, fetchPypi
, setuptools_scm
, isPy3k
, pytest
}:
buildPythonPackage rec {
pname = "backports.functools_lru_cache";
version = "1.5";
src = fetchPypi {
inherit pname version;
sha256 = "9d98697f088eb1b0fa451391f91afb5e3ebde16bbdb272819fd091151fda4f1a";
};
buildInputs = [ setuptools_scm ];
checkInputs = [ pytest ];
checkPhase = ''
pytest
'';
# Test fail on Python 2
doCheck = isPy3k;
meta = {
description = "Backport of functools.lru_cache";
homepage = https://github.com/jaraco/backports.functools_lru_cache;
license = lib.licenses.mit;
};
}
|