My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/expiringdict/default.nix

44 lines
919 B

{ lib
, buildPythonApplication
, fetchFromGitHub
, dill
, coverage
, coveralls
, mock
, nose
}:
buildPythonApplication rec {
pname = "expiringdict";
version = "1.2.1";
# use fetchFromGitHub instead of fetchPypi because the test suite of
# the package is not included into the PyPI tarball
src = fetchFromGitHub {
owner = "mailgun";
repo = pname;
rev = "v${version}";
sha256 = "07g1vxznmim78bankfl9brr01s31sksdcpwynq1yryh6xw9ri5xs";
};
checkInputs = [
dill
coverage
coveralls
mock
nose
];
checkPhase = ''
nosetests -v --with-coverage --cover-package=expiringdict
'';
pythonImportsCheck = [ "expiringdict" ];
meta = with lib; {
description = "Dictionary with auto-expiring values for caching purposes";
homepage = "https://pypi.org/project/expiringdict/";
license = licenses.asl20;
maintainers = with maintainers; [ gravndal ];
};
}