blob: 924ce07c8e78db4b0a2c27ef213ffbf77523a837 (
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
32
33
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest
, freezegun
}:
buildPythonPackage rec {
pname = "cached-property";
version = "1.4.2";
# conftest.py is missing in PyPI tarball
src = fetchFromGitHub {
owner = "pydanny";
repo = pname;
rev = version;
sha256 = "0gjmgfilhljkx2b60cjikwh55jg2jwxhwi8hgkrzdnzk465ywhrw";
};
checkInputs = [ pytest freezegun ];
checkPhase = ''
py.test
'';
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 ];
};
}
|