depot/third_party/nixpkgs/pkgs/development/python-modules/diskcache/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

41 lines
818 B
Nix

{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pytestcov
, pytest_xdist
, pytest-django
, mock
}:
buildPythonPackage rec {
pname = "diskcache";
version = "5.2.1";
src = fetchFromGitHub {
owner = "grantjenks";
repo = "python-diskcache";
rev = "v${version}";
sha256 = "sha256-dWtEyyWpg0rxEwyhBdPyApzgS9o60HVGbtY76ELHvX8=";
};
checkInputs = [
pytestCheckHook
pytestcov
pytest_xdist
pytest-django
mock
];
# Darwin sandbox causes most tests to fail.
doCheck = !stdenv.isDarwin;
pythonImportsCheck = [ "diskcache" ];
meta = with lib; {
description = "Disk and file backed persistent cache";
homepage = "http://www.grantjenks.com/docs/diskcache/";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}