1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-24 02:00:41 +03:00
nixpkgs/pkgs/development/python-modules/django-tree-queries/default.nix
Martin Weinelt 3da4f090d0
python313Packages.django-tree-queries: init at 0.19
New dependency for strawberry-django.
2025-01-27 10:57:32 +01:00

53 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
django,
pytest-django,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "django-tree-queries";
version = "0.19";
pyproject = true;
src = fetchFromGitHub {
owner = "feincms";
repo = "django-tree-queries";
tag = version;
hash = "sha256-0RSmwgyXaLCp2GcUZ0l7zkyofd5qemd/er+7KfGsoGM=";
};
build-system = [
hatchling
];
nativeCheckInputs = [
django
pytest-django
pytestCheckHook
];
preCheck = ''
pushd tests
export DJANGO_SETTINGS_MODULE=testapp.settings
'';
postCheck = ''
popd
'';
pythonImportsCheck = [
"tree_queries"
];
meta = {
description = "Adjacency-list trees for Django using recursive common table expressions. Supports PostgreSQL, sqlite, MySQL and MariaDB";
homepage = "https://github.com/feincms/django-tree-queries";
changelog = "https://github.com/feincms/django-tree-queries/blob/${src.tag}/CHANGELOG.rst";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ ];
};
}