2022-10-06 18:32:54 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, django
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-django
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-scopes";
|
|
|
|
version = "1.2.0.post1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raphaelm";
|
|
|
|
repo = "django-scopes";
|
|
|
|
# No 1.2.0.post1 tag, see https://github.com/raphaelm/django-scopes/issues/27
|
|
|
|
rev = "0b93cdb6a8335cb02a8ea7296511358ba841d137";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-djptJRkW1pfVbxhhs58fJA4d8dKZuvYRy01Aa3Btr+k=";
|
2022-10-06 18:32:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-10-06 18:32:54 +00:00
|
|
|
pytest-django
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "django_scopes" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Safely separate multiple tenants in a Django database";
|
|
|
|
homepage = "https://github.com/raphaelm/django-scopes";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
|
|
};
|
|
|
|
}
|