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