blob: e373fa30a526f3429bd359b74cf7fb32362431d8 (
plain) (
blame)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, django
# optionals
, bleach
, docutils
, markdown
, pygments
, python-creole
, smartypants
, textile
# tests
, pytest-django
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "django-markup";
version = "1.7.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "bartTC";
repo = "django-markup";
rev = "refs/tags/v${version}";
hash = "sha256-NvGlvrXOwDrwHhbFHrWf7Kz9sEzTTyq84/Z6jjRNy8Q=";
};
postPatch = ''
sed -i "/--cov/d" pyproject.toml
'';
buildInputs = [
django
];
passthru.optional-dependencies = {
all_filter_dependencies = [
bleach
docutils
markdown
pygments
python-creole
smartypants
textile
];
};
pythonImportsCheck = [
"django_markup"
];
nativeCheckInputs = [
pytest-django
pytestCheckHook
] ++ passthru.optional-dependencies.all_filter_dependencies;
env.DJANGO_SETTINGS_MODULE = "django_markup.tests";
meta = with lib; {
description = "Generic Django application to convert text with specific markup to html.";
homepage = "https://github.com/bartTC/django-markup";
changelog = "https://github.com/bartTC/django-markup/blob/v${version}/CHANGELOG.rst";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}
|