1{ lib
2, buildPythonPackage
3, django
4, fetchPypi
5, pytest-django
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "django-treebeard";
12 version = "4.7";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-x1Gj+SQVjCiP6omvwlpxUZefrwG/Ef3HvjuFgJnfpW0=";
20 };
21
22 propagatedBuildInputs = [
23 django
24 ];
25
26 nativeCheckInputs = [
27 pytest-django
28 pytestCheckHook
29 ];
30
31 pythonImportsCheck = [
32 "treebeard"
33 ];
34
35 meta = with lib; {
36 description = "Efficient tree implementations for Django";
37 homepage = "https://tabo.pe/projects/django-treebeard/";
38 changelog = "https://github.com/django-treebeard/django-treebeard/blob/${version}/CHANGES.md";
39 license = licenses.asl20;
40 maintainers = with maintainers; [ desiderius ];
41 };
42}