Files
nixpkgs/pkgs/development/python-modules/django-mptt/default.nix
2026-07-15 14:04:39 -04:00

52 lines
993 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
django,
django-js-asset,
model-bakery,
pytestCheckHook,
pytest-django,
}:
buildPythonPackage rec {
pname = "django-mptt";
version = "0.18";
pyproject = true;
src = fetchFromGitHub {
owner = "django-mptt";
repo = "django-mptt";
rev = version;
hash = "sha256-UJQwjOde0DkG/Pa/pd2htnp4KEn5KwYAo8GP5A7/h+I=";
};
build-system = [ hatchling ];
dependencies = [
django
django-js-asset
];
pythonImportsCheck = [ "mptt" ];
nativeCheckInputs = [
model-bakery
pytestCheckHook
pytest-django
];
preCheck = ''
export DJANGO_SETTINGS_MODULE=tests.settings
export PYTHONPATH=$(pwd)/tests:$PYTHONPATH
'';
meta = {
description = "Utilities for implementing a modified pre-order traversal tree in Django";
homepage = "https://github.com/django-mptt/django-mptt";
maintainers = with lib.maintainers; [ hexa ];
license = lib.licenses.mit;
};
}