about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/cached-property/default.nix
blob: 72bf870c37b5f6f28bb327f63718d5c01a789425 (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
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, freezegun
}:

buildPythonPackage rec {
  pname = "cached-property";
  version = "1.5.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "9fa5755838eecbb2d234c3aa390bd80fbd3ac6b6869109bfc1b499f7bd89a130";
  };

  checkInputs = [ pytestCheckHook freezegun ];

  disabledTests = [
    # https://github.com/pydanny/cached-property/issues/131
    "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 ];
  };
}