python3Packages.expiringdict: init at 1.2.1

This commit is contained in:
Gaute Ravndal 2021-04-01 23:05:08 +02:00
parent 89aa5c2fb5
commit 59318f5570
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,44 @@
{ 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 ];
};
}

View File

@ -2233,6 +2233,8 @@ in {
exifread = callPackage ../development/python-modules/exifread { };
expiringdict = callPackage ../development/python-modules/expiringdict { };
exrex = callPackage ../development/python-modules/exrex { };
extras = callPackage ../development/python-modules/extras { };