summary refs log tree commit diff
path: root/pkgs/development/python-modules/django-guardian/default.nix
blob: c6636ee5eabb5a3c784ac61c5b0aae279f6c64c8 (plain) (blame)
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
34
35
36
37
{ lib
, buildPythonPackage
, fetchPypi
, django-environ
, mock
, django
, pytestCheckHook
, pytest-django
}:

buildPythonPackage rec {
  pname = "django-guardian";
  version = "2.4.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "c58a68ae76922d33e6bdc0e69af1892097838de56e93e78a8361090bcd9f89a0";
  };

  propagatedBuildInputs = [ django ];

  checkInputs = [
    django-environ
    mock
    pytestCheckHook
    pytest-django
  ];

  pythonImportsCheck = [ "guardian" ];

  meta = with lib; {
    description = "Per object permissions for Django";
    homepage = "https://github.com/django-guardian/django-guardian";
    license = with licenses; [ mit bsd2 ];
    maintainers = with maintainers; [ SuperSandro2000 ];
  };
}