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