soyouzpanda 2fb7447329
python3Packages.django-organizations: init at 2.4.1
Co-authored-by: Defelo <mail@defelo.de>
2025-03-04 03:01:34 +01:00

52 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
django,
django-extensions,
pytest-django,
pytestCheckHook,
mock,
mock-django,
django-autoslug,
}:
buildPythonPackage rec {
pname = "django-organizations";
version = "2.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "bennylope";
repo = "django-organizations";
tag = version;
hash = "sha256-lgri6CCITp1oYCwpH8vrUglphXOmwZ3KX5G/L29akrs=";
};
build-system = [ hatchling ];
dependencies = [
django
django-extensions
];
nativeCheckInputs = [
pytest-django
pytestCheckHook
mock
mock-django
django-autoslug
];
pythonImportsCheck = [ "organizations" ];
meta = {
description = "Multi-user accounts for Django projects";
homepage = "https://github.com/bennylope/django-organizations";
changelog = "https://github.com/bennylope/django-organizations/blob/${version}/HISTORY.rst";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ defelo ];
};
}