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