2021-02-05 17:12:51 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-02-05 17:12:51 +00:00
|
|
|
, pytestCheckHook
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-cov
|
|
|
|
, pytest-xdist
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest-django
|
|
|
|
, mock
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "diskcache";
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "5.2.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "grantjenks";
|
|
|
|
repo = "python-diskcache";
|
|
|
|
rev = "v${version}";
|
2021-03-09 03:18:52 +00:00
|
|
|
sha256 = "sha256-dWtEyyWpg0rxEwyhBdPyApzgS9o60HVGbtY76ELHvX8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pytestCheckHook
|
2021-07-24 12:14:16 +00:00
|
|
|
pytest-cov
|
|
|
|
pytest-xdist
|
2020-04-24 23:36:52 +00:00
|
|
|
pytest-django
|
|
|
|
mock
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
# Darwin sandbox causes most tests to fail.
|
|
|
|
doCheck = !stdenv.isDarwin;
|
2021-03-09 03:18:52 +00:00
|
|
|
pythonImportsCheck = [ "diskcache" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Disk and file backed persistent cache";
|
|
|
|
homepage = "http://www.grantjenks.com/docs/diskcache/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|