Files
nixpkgs/pkgs/development/python-modules/django-guardian/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

43 lines
805 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
django-environ,
django,
pytestCheckHook,
pytest-django,
setuptools,
}:
buildPythonPackage rec {
pname = "django-guardian";
version = "3.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "django-guardian";
repo = "django-guardian";
tag = version;
hash = "sha256-imisHa5DOIQrQCEPWC/0EqPjDq12tR3xr0Dl1VifJoI=";
};
build-system = [ setuptools ];
dependencies = [ django ];
nativeCheckInputs = [
django-environ
pytestCheckHook
pytest-django
];
pythonImportsCheck = [ "guardian" ];
meta = {
description = "Per object permissions for Django";
homepage = "https://github.com/django-guardian/django-guardian";
license = with lib.licenses; [ bsd2 ];
maintainers = [ ];
};
}