2021-01-14 13:36:43 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2019-07-13 04:33:25 +01:00
|
|
|
, buildPythonPackage
|
2019-12-30 00:30:23 +00:00
|
|
|
, fetchFromGitHub
|
2021-01-14 13:36:43 +00:00
|
|
|
, pytestCheckHook
|
2019-12-30 00:30:23 +00:00
|
|
|
, pytestcov
|
|
|
|
, pytest_xdist
|
|
|
|
, pytest-django
|
|
|
|
, mock
|
2020-01-28 11:27:28 +00:00
|
|
|
, django
|
2019-07-13 04:33:25 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "diskcache";
|
2021-01-14 13:36:43 +00:00
|
|
|
version = "5.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}";
|
2021-01-14 13:36:43 +00:00
|
|
|
sha256 = "0xwqw60dbn1x2294galcs08vm6ydcr677lr8slqz8a3ry6sgkhn9";
|
2019-07-13 04:33:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-01-14 13:36:43 +00:00
|
|
|
pytestCheckHook
|
2019-12-30 00:30:23 +00:00
|
|
|
pytestcov
|
|
|
|
pytest_xdist
|
|
|
|
pytest-django
|
|
|
|
mock
|
2019-07-13 04:33:25 +01:00
|
|
|
];
|
|
|
|
|
2021-01-14 13:36:43 +00:00
|
|
|
# Darwin sandbox causes most tests to fail.
|
|
|
|
doCheck = !stdenv.isDarwin;
|
2019-12-30 00:30:23 +00:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|