1{ lib
2, buildPythonPackage
3, docutils
4, fetchPypi
5, importlib-metadata
6, markdown
7, pygments
8, pytestCheckHook
9, python-markdown-math
10, pythonOlder
11, pyyaml
12, textile
13}:
14
15buildPythonPackage rec {
16 pname = "markups";
17 version = "3.1.3";
18 format = "setuptools";
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchPypi {
23 pname = "Markups";
24 inherit version;
25 hash = "sha256-q5dHpywcZFdBjrQnbHmHGXfBOmVGGOTxLiofCZD78vw=";
26 };
27
28 propagatedBuildInputs = [
29 docutils
30 markdown
31 pygments
32 python-markdown-math
33 pyyaml
34 textile
35 ] ++ lib.optionals (pythonOlder "3.8") [
36 importlib-metadata
37 ];
38
39 checkInputs = [
40 pytestCheckHook
41 ];
42
43 disabledTests = [
44 # AssertionError: '.selector .ch { color: #408080' not found in 'pre...
45 "test_get_pygments_stylesheet"
46 ];
47
48 pythonImportsCheck = [
49 "markups"
50 ];
51
52 meta = with lib; {
53 description = "Wrapper around various text markup languages";
54 homepage = "https://github.com/retext-project/pymarkups";
55 license = licenses.bsd3;
56 maintainers = with maintainers; [ klntsky ];
57 };
58}