2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-25 20:21:21 +01:00
|
|
|
, buildPythonPackage
|
2021-02-07 18:56:34 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
2018-10-25 20:21:21 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-02-03 07:15:58 +00:00
|
|
|
version = "3.2.2";
|
2018-10-25 20:21:21 +01:00
|
|
|
pname = "django-cache-url";
|
|
|
|
|
2021-02-07 18:56:34 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "epicserve";
|
|
|
|
repo = "django-cache-url";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0fxma2w6zl3cfl6wnynmlmp8snks67ffz4jcq4qmdc65xv1l204l";
|
2018-10-25 20:21:21 +01:00
|
|
|
};
|
|
|
|
|
2021-02-07 18:56:34 +00:00
|
|
|
postPatch = ''
|
|
|
|
# disable coverage tests
|
|
|
|
sed -i '/--cov/d' setup.cfg
|
2018-10-25 20:21:21 +01:00
|
|
|
'';
|
|
|
|
|
2021-02-07 18:56:34 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2018-10-25 20:21:21 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-02-07 18:56:34 +00:00
|
|
|
homepage = "https://github.com/epicserve/django-cache-url";
|
2018-10-25 20:21:21 +01:00
|
|
|
description = "Use Cache URLs in your Django application";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|