1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, django 5, pytestCheckHook 6, pytest-django 7}: 8 9buildPythonPackage rec { 10 pname = "django-scopes"; 11 version = "2.0.0"; 12 13 src = fetchFromGitHub { 14 owner = "raphaelm"; 15 repo = "django-scopes"; 16 rev = "refs/tags/${version}"; 17 hash = "sha256-CtToztLVvSb91pMpPNL8RysQJzlRkeXuQbpvbkX3jfM="; 18 }; 19 20 propagatedBuildInputs = [ 21 django 22 ]; 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}