blob: 9ed1f388f06fab6e85bf1250657f6b99e9b2b402 (
plain)
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
35
36
37
38
39
40
41
42
43
44
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
freezegun,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "cached-property";
version = "2.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "pydanny";
repo = "cached-property";
tag = version;
hash = "sha256-sOThFJs18DR9aBgIpqkORU4iRmhCVKehyM3DLYUt/Wc=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
freezegun
pytestCheckHook
];
disabledTests = [
# https://github.com/pydanny/cached-property/issues/131
"test_threads_ttl_expiry"
];
pythonImportsCheck = [ "cached_property" ];
meta = {
description = "Decorator for caching properties in classes";
homepage = "https://github.com/pydanny/cached-property";
changelog = "https://github.com/pydanny/cached-property/releases/tag/${version}";
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
maintainers = [ ];
};
}
|