blob: 108d95a8153467a81a9bcbd88c7ef1de758f86f1 (
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,
fetchFromGitHub,
django,
pytestCheckHook,
pytest-django,
}:
buildPythonPackage rec {
pname = "django-scopes";
version = "2.0.0";
format = "setuptools";
src = fetchFromGitHub {
owner = "raphaelm";
repo = "django-scopes";
rev = "refs/tags/${version}";
hash = "sha256-CtToztLVvSb91pMpPNL8RysQJzlRkeXuQbpvbkX3jfM=";
};
propagatedBuildInputs = [ django ];
nativeCheckInputs = [
pytest-django
pytestCheckHook
];
pythonImportsCheck = [ "django_scopes" ];
meta = with lib; {
description = "Safely separate multiple tenants in a Django database";
homepage = "https://github.com/raphaelm/django-scopes";
license = licenses.asl20;
maintainers = with maintainers; [ ambroisie ];
};
}
|