1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-23 07:26:54 +00:00
nixpkgs/pkgs/development/python-modules/cached-property/default.nix
2018-04-09 14:50:00 +02:00

34 lines
695 B
Nix

{ 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 ];
};
}