mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-30 20:24:43 +00:00
Changelog: https://github.com/django-guardian/django-guardian/releases/tag/3.3.3 Diff: https://github.com/django-guardian/django-guardian/compare/3.2.0...3.3.3
46 lines
954 B
Nix
46 lines
954 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
django-environ,
|
|
django,
|
|
pytestCheckHook,
|
|
pytest-django,
|
|
pytest-xdist,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "django-guardian";
|
|
version = "3.3.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "django-guardian";
|
|
repo = "django-guardian";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-0zUdcDeJ40AuYSzhjy3/htU43cy6T54rZOj2zFo6J+8=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ django ];
|
|
|
|
nativeCheckInputs = [
|
|
django-environ
|
|
pytestCheckHook
|
|
pytest-django
|
|
pytest-xdist
|
|
];
|
|
|
|
pythonImportsCheck = [ "guardian" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/django-guardian/django-guardian/releases/tag/${finalAttrs.src.tag}";
|
|
description = "Per object permissions for Django";
|
|
homepage = "https://github.com/django-guardian/django-guardian";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = [ ];
|
|
};
|
|
})
|