mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 19:03:28 +00:00
python3Packages.expiringdict: init at 1.2.1
This commit is contained in:
parent
89aa5c2fb5
commit
59318f5570
44
pkgs/development/python-modules/expiringdict/default.nix
Normal file
44
pkgs/development/python-modules/expiringdict/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user