2019-07-13 03:33:25 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2019-12-30 00:30:23 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, pytest_xdist
|
|
|
|
, pytest-django
|
|
|
|
, mock
|
2020-01-28 11:27:28 +00:00
|
|
|
, django
|
2019-07-13 03:33:25 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "diskcache";
|
2019-10-24 06:47:29 +00:00
|
|
|
version = "4.1.0";
|
2019-07-13 03:33:25 +00:00
|
|
|
|
2019-12-30 00:30:23 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "grantjenks";
|
|
|
|
repo = "python-diskcache";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0xy2vpk4hixb4gg871d9sx9wxdz8pi0pmnfdwg4bf8jqfjg022w8";
|
2019-07-13 03:33:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
2019-12-30 00:30:23 +00:00
|
|
|
pytest
|
|
|
|
pytestcov
|
|
|
|
pytest_xdist
|
|
|
|
pytest-django
|
|
|
|
mock
|
2019-07-13 03:33:25 +00:00
|
|
|
];
|
|
|
|
|
2020-01-28 11:27:28 +00:00
|
|
|
disabled = lib.versionAtLeast django.version "2.0";
|
|
|
|
|
2019-12-30 00:30:23 +00:00
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
2019-07-13 03:33:25 +00: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 03:33:25 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|