1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 freezegun,
6 pytestCheckHook,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "property-cached";
12 version = "1.6.4";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "althonos";
17 repo = "property-cached";
18 tag = "v${version}";
19 hash = "sha256-8kityZ++1TS22Ff7a5x5bQi0QBaHsNaP4E/Man8A28A=";
20 };
21
22 build-system = [ setuptools ];
23
24 nativeCheckInputs = [
25 pytestCheckHook
26 freezegun
27 ];
28
29 disabledTestPaths = [
30 # https://github.com/althonos/property-cached/pull/118
31 "tests/test_coroutine_cached_property.py"
32 "tests/test_async_cached_property.py"
33 ];
34 disabledTests = [
35 # https://github.com/pydanny/cached-property/issues/131
36 "test_threads_ttl_expiry"
37 ];
38
39 pythonImportsCheck = [ "property_cached" ];
40
41 meta = {
42 description = "Decorator for caching properties in classes";
43 homepage = "https://github.com/althonos/property-cached";
44 changelog = "https://github.com/althonos/property-cached/blob/v${version}/CHANGELOG.rst";
45 license = lib.licenses.bsd3;
46 maintainers = with lib.maintainers; [ jherland ];
47 };
48}