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
|
2019-07-13 04:33:25 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "diskcache";
|
2021-03-05 17:54:56 +00:00
|
|
|
version = "5.2.1";
|
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-03-05 17:54:56 +00:00
|
|
|
sha256 = "sha256-dWtEyyWpg0rxEwyhBdPyApzgS9o60HVGbtY76ELHvX8=";
|
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;
|
2021-03-05 17:54:56 +00:00
|
|
|
pythonImportsCheck = [ "diskcache" ];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|