pythonPackages.diskcache: refactor fix broken build
This commit is contained in:
parent
b555997f31
commit
8bb4ccd1b5
@ -1,22 +1,36 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, tox
|
, pytest
|
||||||
|
, pytestcov
|
||||||
|
, pytest_xdist
|
||||||
|
, pytest-django
|
||||||
|
, mock
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "diskcache";
|
pname = "diskcache";
|
||||||
version = "4.1.0";
|
version = "4.1.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "grantjenks";
|
||||||
sha256 = "bcee5a59f9c264e2809e58d01be6569a3bbb1e36a1e0fb83f7ef9b2075f95ce0";
|
repo = "python-diskcache";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0xy2vpk4hixb4gg871d9sx9wxdz8pi0pmnfdwg4bf8jqfjg022w8";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
tox
|
pytest
|
||||||
|
pytestcov
|
||||||
|
pytest_xdist
|
||||||
|
pytest-django
|
||||||
|
mock
|
||||||
];
|
];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
pytest
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Disk and file backed persistent cache";
|
description = "Disk and file backed persistent cache";
|
||||||
homepage = "http://www.grantjenks.com/docs/diskcache/";
|
homepage = "http://www.grantjenks.com/docs/diskcache/";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user