1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 django,
7 django-js-asset,
8}:
9
10buildPythonPackage rec {
11 pname = "django-mptt";
12 version = "0.16";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "django-mptt";
17 repo = "django-mptt";
18 rev = version;
19 hash = "sha256-vWnXKWzaa5AWoNaIc8NA1B2mnzKXRliQmi5VdrRMadE=";
20 };
21
22 build-system = [ hatchling ];
23
24 dependencies = [
25 django
26 django-js-asset
27 ];
28
29 pythonImportsCheck = [ "mptt" ];
30
31 # No pytest checks, since they depend on model_mommy, which is deprecated
32 doCheck = false;
33
34 meta = with lib; {
35 description = "Utilities for implementing a modified pre-order traversal tree in Django";
36 homepage = "https://github.com/django-mptt/django-mptt";
37 maintainers = with maintainers; [ hexa ];
38 license = with licenses; [ mit ];
39 };
40}