From ed1c058774efb00b71035f1015be609693a17053 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 15 Jan 2025 11:25:37 +0100 Subject: [PATCH] python312Packages.django-cache-url: 3.2.2 -> 3.4.5 Diff: epicserve/django-cache-url@refs/tags/v3.2.2...v3.4.5 --- .../django-cache-url/default.nix | 30 ++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/django-cache-url/default.nix b/pkgs/development/python-modules/django-cache-url/default.nix index 89fdb9df9d83..6caeb87cb973 100644 --- a/pkgs/development/python-modules/django-cache-url/default.nix +++ b/pkgs/development/python-modules/django-cache-url/default.nix @@ -1,32 +1,42 @@ { lib, buildPythonPackage, + django, fetchFromGitHub, + pytest-cov-stub, pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { - version = "3.2.2"; - format = "setuptools"; pname = "django-cache-url"; + version = "3.4.5"; + pyproject = true; + + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "epicserve"; repo = "django-cache-url"; - rev = "v${version}"; - sha256 = "0fxma2w6zl3cfl6wnynmlmp8snks67ffz4jcq4qmdc65xv1l204l"; + tag = "v${version}"; + hash = "sha256-SjTcBYaFMD8XwIlqOgoJrc30FLrpX+M2ZcvZzA9ou6g="; }; - postPatch = '' - # disable coverage tests - sed -i '/--cov/d' setup.cfg - ''; + build-system = [ setuptools ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + django + pytest-cov-stub + pytestCheckHook + ]; + + pythonImportsCheck = [ "django_cache_url" ]; meta = with lib; { - homepage = "https://github.com/epicserve/django-cache-url"; description = "Use Cache URLs in your Django application"; + homepage = "https://github.com/epicserve/django-cache-url"; + changelog = "https://github.com/epicserve/django-cache-url/blob/v${version}/CHANGELOG.rst"; license = licenses.mit; maintainers = [ ]; };