From 6c9b2755ee7258f198865de1ed71001b8c3fbb60 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 15 Jan 2025 09:49:21 +0100 Subject: [PATCH] python312Packages.django-cleanup: 8.1.0 -> 9.0.0 Changelog: https://github.com/un1t/django-cleanup/blob/8.1.0/CHANGELOG.md --- .../python-modules/django-cleanup/default.nix | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/django-cleanup/default.nix b/pkgs/development/python-modules/django-cleanup/default.nix index b2a5a737f3bf..93416a3ee038 100644 --- a/pkgs/development/python-modules/django-cleanup/default.nix +++ b/pkgs/development/python-modules/django-cleanup/default.nix @@ -4,22 +4,28 @@ fetchPypi, django, pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "django-cleanup"; - version = "8.1.0"; - format = "setuptools"; + version = "9.0.0"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchPypi { - inherit pname version; - hash = "sha256-cN+QUHakTnoRGzEZgZmvYz3uCIduGZ5tzjbKjda4sQ8="; + pname = "django_cleanup"; + inherit version; + hash = "sha256-u5+1YKr2KVnIHjH6QIhcNrvVhU1aohuQ3yx+S6YzUx4="; }; + build-system = [ setuptools ]; + nativeCheckInputs = [ django ]; + pythonImportsCheck = [ "django_cleanup" ]; + meta = with lib; { description = "Automatically deletes old file for FileField and ImageField. It also deletes files on models instance deletion"; homepage = "https://github.com/un1t/django-cleanup";