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
This commit is contained in:
Sandro Jäckel
2025-08-18 19:15:58 +02:00
parent a3b4ab063a
commit 3eba985d25
@@ -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 \