Files
2026-05-06 16:41:53 +02:00

34 lines
774 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
django,
setuptools,
}:
buildPythonPackage rec {
pname = "django-cleanup";
version = "9.0.0";
pyproject = true;
src = fetchPypi {
pname = "django_cleanup";
inherit version;
hash = "sha256-u5+1YKr2KVnIHjH6QIhcNrvVhU1aohuQ3yx+S6YzUx4=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ django ];
pythonImportsCheck = [ "django_cleanup" ];
meta = {
description = "Automatically deletes old file for FileField and ImageField. It also deletes files on models instance deletion";
homepage = "https://github.com/un1t/django-cleanup";
changelog = "https://github.com/un1t/django-cleanup/blob/${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = [ ];
};
}