summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/django-cleanup/default.nix
blob: 877b01d42107637a3b38aee55a7243607fddf955 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  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 = with lib.maintainers; [ mmai ];
  };
}