nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 django,
6 pytestCheckHook,
7 pytest-django,
8}:
9
10buildPythonPackage (finalAttrs: {
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 = finalAttrs.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 = {
32 description = "Safely separate multiple tenants in a Django database";
33 homepage = "https://github.com/raphaelm/django-scopes";
34 license = lib.licenses.asl20;
35 maintainers = with lib.maintainers; [ ambroisie ];
36 };
37})