blob: 7cc8c397f127e1535bf441c8871b9b89caf4c150 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
django,
django-js-asset,
model-bakery,
pytestCheckHook,
pytest-django,
}:
buildPythonPackage rec {
pname = "django-mptt";
version = "0.18";
pyproject = true;
src = fetchFromGitHub {
owner = "django-mptt";
repo = "django-mptt";
rev = version;
hash = "sha256-UJQwjOde0DkG/Pa/pd2htnp4KEn5KwYAo8GP5A7/h+I=";
};
build-system = [ hatchling ];
dependencies = [
django
django-js-asset
];
pythonImportsCheck = [ "mptt" ];
nativeCheckInputs = [
model-bakery
pytestCheckHook
pytest-django
];
preCheck = ''
export DJANGO_SETTINGS_MODULE=tests.settings
export PYTHONPATH=$(pwd)/tests:$PYTHONPATH
'';
meta = {
description = "Utilities for implementing a modified pre-order traversal tree in Django";
homepage = "https://github.com/django-mptt/django-mptt";
maintainers = with lib.maintainers; [ hexa ];
license = with lib.licenses; [ mit ];
};
}
|