2017-12-31 11:17:36 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-01-30 15:49:29 +00:00
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
2017-12-31 11:17:36 +00:00
|
|
|
, freezegun
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cached-property";
|
2021-01-30 15:49:29 +00:00
|
|
|
version = "1.5.2";
|
2017-12-31 11:17:36 +00:00
|
|
|
|
2021-01-30 15:49:29 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "9fa5755838eecbb2d234c3aa390bd80fbd3ac6b6869109bfc1b499f7bd89a130";
|
2017-12-31 11:17:36 +00:00
|
|
|
};
|
|
|
|
|
2021-01-30 15:49:29 +00:00
|
|
|
checkInputs = [ pytestCheckHook freezegun ];
|
2018-02-26 22:42:14 +00:00
|
|
|
|
2021-01-30 15:49:29 +00:00
|
|
|
disabledTests = [
|
|
|
|
# https://github.com/pydanny/cached-property/issues/131
|
|
|
|
"test_threads_ttl_expiry"
|
|
|
|
];
|
2017-12-31 11:17:36 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A decorator for caching properties in classes";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pydanny/cached-property";
|
2017-12-31 11:17:36 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = with lib.maintainers; [ ericsagnes ];
|
|
|
|
};
|
2018-02-26 22:42:14 +00:00
|
|
|
}
|