diff options
Diffstat (limited to 'pkgs/development/python-modules/cached-property/default.nix')
-rw-r--r-- | pkgs/development/python-modules/cached-property/default.nix | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/pkgs/development/python-modules/cached-property/default.nix b/pkgs/development/python-modules/cached-property/default.nix index 6ab5015a1e7..5daa505429e 100644 --- a/pkgs/development/python-modules/cached-property/default.nix +++ b/pkgs/development/python-modules/cached-property/default.nix @@ -1,19 +1,28 @@ { lib , buildPythonPackage -, fetchPypi +, fetchFromGitHub +, pytest , freezegun }: buildPythonPackage rec { pname = "cached-property"; - version = "1.3.1"; + version = "1.4.0"; - src = fetchPypi { - inherit pname version; - sha256 = "6562f0be134957547421dda11640e8cadfa7c23238fc4e0821ab69efdb1095f3"; + # conftest.py is missing in PyPI tarball + # https://github.com/pydanny/cached-property/pull/87 + src = fetchFromGitHub { + owner = "pydanny"; + repo = pname; + rev = version; + sha256 = "0w7709grs4yqhfbnn7lva2fgyphvh43xcfqhi95lhh8sjad3xwkw"; }; - checkInputs = [ freezegun ]; + checkInputs = [ pytest freezegun ]; + + checkPhase = '' + py.test + ''; meta = { description = "A decorator for caching properties in classes"; @@ -22,4 +31,4 @@ buildPythonPackage rec { platforms = lib.platforms.unix; maintainers = with lib.maintainers; [ ericsagnes ]; }; -} \ No newline at end of file +} |