Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / django-scopes / default.nix
blobdf4cd3599fac55eb228867eef3485ceb395897ef
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , django
5 , pytestCheckHook
6 , pytest-django
7 }:
9 buildPythonPackage rec {
10   pname = "django-scopes";
11   version = "2.0.0";
12   format = "setuptools";
14   src = fetchFromGitHub {
15     owner = "raphaelm";
16     repo = "django-scopes";
17     rev = "refs/tags/${version}";
18     hash = "sha256-CtToztLVvSb91pMpPNL8RysQJzlRkeXuQbpvbkX3jfM=";
19   };
21   propagatedBuildInputs = [
22     django
23   ];
25   nativeCheckInputs = [
26     pytest-django
27     pytestCheckHook
28   ];
30   pythonImportsCheck = [ "django_scopes" ];
32   meta = with lib; {
33     description = "Safely separate multiple tenants in a Django database";
34     homepage = "https://github.com/raphaelm/django-scopes";
35     license = licenses.asl20;
36     maintainers = with maintainers; [ ambroisie ];
37   };