Files
nixpkgs/pkgs/development/python-modules/django-mptt/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

52 lines
1003 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 = with lib.licenses; [ mit ];
};
}