Skip to content

Commit f15e739

Browse files
authored
python312Packages.django-cache-url: 3.2.2 -> 3.4.5 (#373990)
2 parents e4c85e2 + ed1c058 commit f15e739

File tree

1 file changed

+20
-10
lines changed
  • pkgs/development/python-modules/django-cache-url

1 file changed

+20
-10
lines changed

pkgs/development/python-modules/django-cache-url/default.nix

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,42 @@
11
{
22
lib,
33
buildPythonPackage,
4+
django,
45
fetchFromGitHub,
6+
pytest-cov-stub,
57
pytestCheckHook,
8+
pythonOlder,
9+
setuptools,
610
}:
711

812
buildPythonPackage rec {
9-
version = "3.2.2";
10-
format = "setuptools";
1113
pname = "django-cache-url";
14+
version = "3.4.5";
15+
pyproject = true;
16+
17+
disabled = pythonOlder "3.8";
1218

1319
src = fetchFromGitHub {
1420
owner = "epicserve";
1521
repo = "django-cache-url";
16-
rev = "v${version}";
17-
sha256 = "0fxma2w6zl3cfl6wnynmlmp8snks67ffz4jcq4qmdc65xv1l204l";
22+
tag = "v${version}";
23+
hash = "sha256-SjTcBYaFMD8XwIlqOgoJrc30FLrpX+M2ZcvZzA9ou6g=";
1824
};
1925

20-
postPatch = ''
21-
# disable coverage tests
22-
sed -i '/--cov/d' setup.cfg
23-
'';
26+
build-system = [ setuptools ];
27+
28+
nativeCheckInputs = [
29+
django
30+
pytest-cov-stub
31+
pytestCheckHook
32+
];
2433

25-
nativeCheckInputs = [ pytestCheckHook ];
34+
pythonImportsCheck = [ "django_cache_url" ];
2635

2736
meta = with lib; {
28-
homepage = "https://github.com/epicserve/django-cache-url";
2937
description = "Use Cache URLs in your Django application";
38+
homepage = "https://github.com/epicserve/django-cache-url";
39+
changelog = "https://github.com/epicserve/django-cache-url/blob/v${version}/CHANGELOG.rst";
3040
license = licenses.mit;
3141
maintainers = [ ];
3242
};

0 commit comments

Comments
 (0)