1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 django, 7 django-js-asset, 8 model-bakery, 9 pytestCheckHook, 10 pytest-django, 11}: 12 13buildPythonPackage rec { 14 pname = "django-mptt"; 15 version = "0.18"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "django-mptt"; 20 repo = "django-mptt"; 21 rev = version; 22 hash = "sha256-UJQwjOde0DkG/Pa/pd2htnp4KEn5KwYAo8GP5A7/h+I="; 23 }; 24 25 build-system = [ hatchling ]; 26 27 dependencies = [ 28 django 29 django-js-asset 30 ]; 31 32 pythonImportsCheck = [ "mptt" ]; 33 34 nativeCheckInputs = [ 35 model-bakery 36 pytestCheckHook 37 pytest-django 38 ]; 39 40 preCheck = '' 41 export DJANGO_SETTINGS_MODULE=tests.settings 42 export PYTHONPATH=$(pwd)/tests:$PYTHONPATH 43 ''; 44 45 meta = with lib; { 46 description = "Utilities for implementing a modified pre-order traversal tree in Django"; 47 homepage = "https://github.com/django-mptt/django-mptt"; 48 maintainers = with maintainers; [ hexa ]; 49 license = with licenses; [ mit ]; 50 }; 51}