1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 django,
6 pytestCheckHook,
7 pytest-django,
8}:
9
10buildPythonPackage rec {
11 pname = "django-scopes";
12 version = "2.0.0";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "raphaelm";
17 repo = "django-scopes";
18 tag = version;
19 hash = "sha256-CtToztLVvSb91pMpPNL8RysQJzlRkeXuQbpvbkX3jfM=";
20 };
21
22 propagatedBuildInputs = [ django ];
23
24 nativeCheckInputs = [
25 pytest-django
26 pytestCheckHook
27 ];
28
29 pythonImportsCheck = [ "django_scopes" ];
30
31 meta = with lib; {
32 description = "Safely separate multiple tenants in a Django database";
33 homepage = "https://github.com/raphaelm/django-scopes";
34 license = licenses.asl20;
35 maintainers = with maintainers; [ ambroisie ];
36 };
37}