+53
pkgs/development/python-modules/django-tree-queries/default.nix
+53
pkgs/development/python-modules/django-tree-queries/default.nix
···
1
+
{
2
+
lib,
3
+
buildPythonPackage,
4
+
fetchFromGitHub,
5
+
hatchling,
6
+
django,
7
+
pytest-django,
8
+
pytestCheckHook,
9
+
}:
10
+
11
+
buildPythonPackage 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
+
}
+2
pkgs/top-level/python-packages.nix
+2
pkgs/top-level/python-packages.nix
···
3705
3705
3706
3706
django-tinymce = callPackage ../development/python-modules/django-tinymce { };
3707
3707
3708
+
django-tree-queries = callPackage ../development/python-modules/django-tree-queries { };
3709
+
3708
3710
django-treebeard = callPackage ../development/python-modules/django-treebeard { };
3709
3711
3710
3712
django-two-factor-auth = callPackage ../development/python-modules/django-two-factor-auth { };