2019-07-13 04:33:25 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2019-12-30 00:30:23 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, pytest_xdist
|
|
|
|
, pytest-django
|
|
|
|
, mock
|
2019-07-13 04:33:25 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "diskcache";
|
2019-10-24 07:47:29 +01:00
|
|
|
version = "4.1.0";
|
2019-07-13 04:33:25 +01:00
|
|
|
|
2019-12-30 00:30:23 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "grantjenks";
|
|
|
|
repo = "python-diskcache";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0xy2vpk4hixb4gg871d9sx9wxdz8pi0pmnfdwg4bf8jqfjg022w8";
|
2019-07-13 04:33:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
2019-12-30 00:30:23 +00:00
|
|
|
pytest
|
|
|
|
pytestcov
|
|
|
|
pytest_xdist
|
|
|
|
pytest-django
|
|
|
|
mock
|
2019-07-13 04:33:25 +01:00
|
|
|
];
|
|
|
|
|
2019-12-30 00:30:23 +00:00
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2019-07-13 04:33:25 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Disk and file backed persistent cache";
|
2019-12-08 16:50:31 +00:00
|
|
|
homepage = "http://www.grantjenks.com/docs/diskcache/";
|
2019-07-13 04:33:25 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|