python3Packages.django-cache-url: enable tests, update homepage

This commit is contained in:
Martin Weinelt 2021-02-07 19:56:34 +01:00
parent 6fedeec0bb
commit d2819b04f6
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,29 +1,29 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchFromGitHub
, pytest , pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "3.2.2"; version = "3.2.2";
pname = "django-cache-url"; pname = "django-cache-url";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "epicserve";
sha256 = "419b1667fe654a1b032073371b67d3fcfbe2a6392337c0e5e6c4ec741a6342a5"; repo = "django-cache-url";
rev = "v${version}";
sha256 = "0fxma2w6zl3cfl6wnynmlmp8snks67ffz4jcq4qmdc65xv1l204l";
}; };
checkInputs = [ pytest ]; postPatch = ''
# disable coverage tests
checkPhase = '' sed -i '/--cov/d' setup.cfg
pytest tests
''; '';
# tests not included with pypi release checkInputs = [ pytestCheckHook ];
doCheck = false;
meta = with lib; { meta = with lib; {
homepage = "https://github.com/ghickman/django-cache-url"; homepage = "https://github.com/epicserve/django-cache-url";
description = "Use Cache URLs in your Django application"; description = "Use Cache URLs in your Django application";
license = licenses.mit; license = licenses.mit;
maintainers = [ maintainers.costrouc ]; maintainers = [ maintainers.costrouc ];