mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 03:23:17 +00:00
ee177f5de3
Diff: 0b93cdb6a8
...2.0.0
38 lines
752 B
Nix
38 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 ];
|
|
};
|
|
}
|