Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / django-scopes / default.nix
blob5f3fdecc64bac4ca3eb0a29952d73eba35881cd1
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";
13   src = fetchFromGitHub {
14     owner = "raphaelm";
15     repo = "django-scopes";
16     rev = "refs/tags/${version}";
17     hash = "sha256-CtToztLVvSb91pMpPNL8RysQJzlRkeXuQbpvbkX3jfM=";
18   };
20   propagatedBuildInputs = [
21     django
22   ];
24   nativeCheckInputs = [
25     pytest-django
26     pytestCheckHook
27   ];
29   pythonImportsCheck = [ "django_scopes" ];
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   };