2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, django
|
2019-09-23 11:20:56 +01:00
|
|
|
, redis, async-timeout, hiredis
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-cleanup";
|
2020-10-15 10:04:51 +01:00
|
|
|
version = "5.1.0";
|
2019-09-23 11:20:56 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-15 10:04:51 +01:00
|
|
|
sha256 = "8976aec12a22913afb3d1fcb541b1aedde2f5ec243e4260c5ff78bb6aa75a089";
|
2019-09-23 11:20:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ django ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-09-23 11:20:56 +01:00
|
|
|
description = "Automatically deletes old file for FileField and ImageField. It also deletes files on models instance deletion";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/un1t/django-cleanup";
|
2019-09-23 11:20:56 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mmai ];
|
|
|
|
};
|
|
|
|
}
|