1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5, freezegun 6}: 7 8buildPythonPackage rec { 9 pname = "cached-property"; 10 version = "1.5.2"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "9fa5755838eecbb2d234c3aa390bd80fbd3ac6b6869109bfc1b499f7bd89a130"; 15 }; 16 17 checkInputs = [ pytestCheckHook freezegun ]; 18 19 disabledTests = [ 20 # https://github.com/pydanny/cached-property/issues/131 21 "test_threads_ttl_expiry" 22 ]; 23 24 meta = { 25 description = "A decorator for caching properties in classes"; 26 homepage = "https://github.com/pydanny/cached-property"; 27 license = lib.licenses.bsd3; 28 platforms = lib.platforms.unix; 29 maintainers = with lib.maintainers; [ ericsagnes ]; 30 }; 31}