1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, django 5, pytestCheckHook 6, pytest-django 7}: 8 9buildPythonPackage rec { 10 pname = "django-scopes"; 11 version = "1.2.0.post1"; 12 13 src = fetchFromGitHub { 14 owner = "raphaelm"; 15 repo = "django-scopes"; 16 # No 1.2.0.post1 tag, see https://github.com/raphaelm/django-scopes/issues/27 17 rev = "0b93cdb6a8335cb02a8ea7296511358ba841d137"; 18 sha256 = "sha256-djptJRkW1pfVbxhhs58fJA4d8dKZuvYRy01Aa3Btr+k="; 19 }; 20 21 propagatedBuildInputs = [ 22 django 23 ]; 24 25 checkInputs = [ 26 pytest-django 27 pytestCheckHook 28 ]; 29 30 pythonImportsCheck = [ "django_scopes" ]; 31 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 }; 38}