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";