Merge pull request #109362 from teh/disccache

python3Packages.diskcache: 4.1.0 -> 5.1.0
This commit is contained in:
Sandro 2021-01-24 01:09:06 +01:00 committed by GitHub
commit 5c38ea76a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,8 @@
{ lib
{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, pytest
, pytestCheckHook
, pytestcov
, pytest_xdist
, pytest-django
@ -11,28 +12,25 @@
buildPythonPackage rec {
pname = "diskcache";
version = "4.1.0";
version = "5.1.0";
src = fetchFromGitHub {
owner = "grantjenks";
repo = "python-diskcache";
rev = "v${version}";
sha256 = "0xy2vpk4hixb4gg871d9sx9wxdz8pi0pmnfdwg4bf8jqfjg022w8";
sha256 = "0xwqw60dbn1x2294galcs08vm6ydcr677lr8slqz8a3ry6sgkhn9";
};
checkInputs = [
pytest
pytestCheckHook
pytestcov
pytest_xdist
pytest-django
mock
];
disabled = lib.versionAtLeast django.version "2.0";
checkPhase = ''
pytest
'';
# Darwin sandbox causes most tests to fail.
doCheck = !stdenv.isDarwin;
meta = with lib; {
description = "Disk and file backed persistent cache";