blob: d25e2e963dc3180eab2eb582ea99537717446a87 (
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
, fetchFromGitHub
, pytest
, freezegun
}:
buildPythonPackage rec {
pname = "cached-property";
version = "1.5.1";
# conftest.py is missing in PyPI tarball
src = fetchFromGitHub {
owner = "pydanny";
repo = pname;
rev = version;
sha256 = "0xh0pwmiikx0il9nnfyf034ydmlw6992s0d209agd9j5d3s2k5q6";
};
checkInputs = [ pytest freezegun ];
# https://github.com/pydanny/cached-property/issues/131
checkPhase = ''
py.test -k "not test_threads_ttl_expiry"
'';
meta = {
description = "A decorator for caching properties in classes";
homepage = "https://github.com/pydanny/cached-property";
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ ericsagnes ];
};
}
|