From 3eba985d255e463876ccd6e48a51f52c4c0f88ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 18 Aug 2025 19:15:58 +0200 Subject: [PATCH] python3Packages.django-cachalot: 2.7.0 -> 2.8.0, switch to pyproject = true Diff: https://github.com/noripyt/django-cachalot/compare/v2.7.0...v2.8.0 Changelog: https://github.com/noripyt/django-cachalot/blob/refs/tags/v2.8.0/CHANGELOG.rst --- .../django-cachalot/default.nix | 25 +++++++++++++++---- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/django-cachalot/default.nix b/pkgs/development/python-modules/django-cachalot/default.nix index 3b83eb8f6a16..55f91c63bb2d 100644 --- a/pkgs/development/python-modules/django-cachalot/default.nix +++ b/pkgs/development/python-modules/django-cachalot/default.nix @@ -7,20 +7,26 @@ psycopg2, jinja2, beautifulsoup4, + pytest-django, + pytestCheckHook, python, pytz, + redis, + redisTestHook, + setuptools, + stdenv, }: buildPythonPackage rec { pname = "django-cachalot"; - version = "2.7.0"; - format = "setuptools"; + version = "2.8.0"; + pyproject = true; src = fetchFromGitHub { owner = "noripyt"; repo = "django-cachalot"; tag = "v${version}"; - hash = "sha256-Fi5UvqH2bVb4v/GWDkEYIcBMBVos+35g4kcEnZTOQvw="; + hash = "sha256-3W+9cULL3mMtAkxbqetoIj2FL/HRbzWHIDMe9O1e6BM="; }; patches = [ @@ -29,18 +35,27 @@ buildPythonPackage rec { ./disable-unsupported-tests.patch ]; - propagatedBuildInputs = [ django ]; + build-system = [ setuptools ]; - checkInputs = [ + dependencies = [ django ]; + + nativeCheckInputs = [ beautifulsoup4 django-debug-toolbar psycopg2 jinja2 + pytest-django + pytestCheckHook pytz + redis + redisTestHook ]; pythonImportsCheck = [ "cachalot" ]; + # redisTestHook does not work on darwin + doCheck = !stdenv.hostPlatform.isDarwin; + # disable broken pinning test preCheck = '' substituteInPlace cachalot/tests/read.py \