1{ lib
2, buildPythonPackage
3, fetchPypi
4, django-environ
5, mock
6, django
7, pytestCheckHook
8, pytest-django
9}:
10
11buildPythonPackage rec {
12 pname = "django-guardian";
13 version = "2.4.0";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "c58a68ae76922d33e6bdc0e69af1892097838de56e93e78a8361090bcd9f89a0";
18 };
19
20 propagatedBuildInputs = [ django ];
21
22 nativeCheckInputs = [
23 django-environ
24 mock
25 pytestCheckHook
26 pytest-django
27 ];
28
29 pythonImportsCheck = [ "guardian" ];
30
31 meta = with lib; {
32 description = "Per object permissions for Django";
33 homepage = "https://github.com/django-guardian/django-guardian";
34 license = with licenses; [ mit bsd2 ];
35 maintainers = with maintainers; [ SuperSandro2000 ];
36 };
37}