1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 django, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "django-cleanup"; 11 version = "8.1.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-cN+QUHakTnoRGzEZgZmvYz3uCIduGZ5tzjbKjda4sQ8="; 19 }; 20 21 nativeCheckInputs = [ django ]; 22 23 meta = with lib; { 24 description = "Automatically deletes old file for FileField and ImageField. It also deletes files on models instance deletion"; 25 homepage = "https://github.com/un1t/django-cleanup"; 26 changelog = "https://github.com/un1t/django-cleanup/blob/${version}/CHANGELOG.md"; 27 license = licenses.mit; 28 maintainers = with maintainers; [ mmai ]; 29 }; 30}