1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 hatchling, 6 django, 7 pytest-django, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "django-tree-queries"; 13 version = "0.19"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "feincms"; 18 repo = "django-tree-queries"; 19 tag = version; 20 hash = "sha256-0RSmwgyXaLCp2GcUZ0l7zkyofd5qemd/er+7KfGsoGM="; 21 }; 22 23 build-system = [ 24 hatchling 25 ]; 26 27 nativeCheckInputs = [ 28 django 29 pytest-django 30 pytestCheckHook 31 ]; 32 33 preCheck = '' 34 pushd tests 35 export DJANGO_SETTINGS_MODULE=testapp.settings 36 ''; 37 38 postCheck = '' 39 popd 40 ''; 41 42 pythonImportsCheck = [ 43 "tree_queries" 44 ]; 45 46 meta = { 47 description = "Adjacency-list trees for Django using recursive common table expressions. Supports PostgreSQL, sqlite, MySQL and MariaDB"; 48 homepage = "https://github.com/feincms/django-tree-queries"; 49 changelog = "https://github.com/feincms/django-tree-queries/blob/${src.tag}/CHANGELOG.rst"; 50 license = lib.licenses.bsd3; 51 maintainers = with lib.maintainers; [ ]; 52 }; 53}