depot/third_party/nixpkgs/pkgs/development/python-modules/django-scopes/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

37 lines
752 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, django
, pytestCheckHook
, pytest-django
}:
buildPythonPackage rec {
pname = "django-scopes";
version = "2.0.0";
src = fetchFromGitHub {
owner = "raphaelm";
repo = "django-scopes";
rev = "refs/tags/${version}";
hash = "sha256-CtToztLVvSb91pMpPNL8RysQJzlRkeXuQbpvbkX3jfM=";
};
propagatedBuildInputs = [
django
];
nativeCheckInputs = [
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 ];
};
}