33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
50 lines
1001 B
Nix
50 lines
1001 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, dill
|
|
, coverage
|
|
, coveralls
|
|
, mock
|
|
, nose
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "expiringdict";
|
|
version = "1.2.2";
|
|
format = "setuptools";
|
|
|
|
# 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 = "refs/tags/v${version}";
|
|
sha256 = "sha256-vRhJSHIqc51I+s/wndtfANM44CKW3QS1iajqyoSBf0I=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
dill
|
|
coverage
|
|
coveralls
|
|
mock
|
|
nose
|
|
];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
nosetests -v --with-coverage --cover-package=expiringdict
|
|
runHook postCheck
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"expiringdict"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Dictionary with auto-expiring values for caching purposes";
|
|
homepage = "https://github.com/mailgun/expiringdict";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ gravndal ];
|
|
};
|
|
}
|