20 buildPythonPackage rec {
21 pname = "python-creole";
25 src = fetchFromGitHub {
27 repo = "python-creole";
28 rev = "refs/tags/v${version}";
29 hash = "sha256-8pXOnLNjhIv0d+BqjW8wlb6BT6CmFHSsxn5wLOv3LBQ=";
33 # https://github.com/jedie/python-creole/pull/77
35 name = "replace-poetry-with-poetry-core.patch";
36 url = "https://github.com/jedie/python-creole/commit/bfc46730ab4a189f3142246cead8d26005a28671.patch";
37 hash = "sha256-WtoEQyu/154Cfj6eSnNA+t37+o7Ij328QGMKxwcLg5k=";
41 nativeBuildInputs = [ poetry-core ];
44 substituteInPlace Makefile \
45 --replace "/bin/bash" "${runtimeShell}"
47 sed -i "/-cov/d" pytest.ini
50 propagatedBuildInputs = [ docutils ];
52 pythonImportsCheck = [ "creole" ];
61 export PATH=$out/bin:$PATH
65 # macro didn't expect argument
66 "test_macro_wrong_arguments_quite"
67 "test_macro_wrong_arguments_with_error_report"
68 # rendering mismatches, likely docutils version mismatch
75 "creole/tests/test_Makefile.py"
76 # requires poetry_publish
78 "creole/tests/test_project_setup.py"
79 # rendering differencenes, likely docutils version mismatch
80 "creole/tests/test_cross_compare_rest.py"
81 "creole/tests/test_rest2html.py"
85 # fixture mismatch after docutils update
86 "--deselect=creole/rest_tools/clean_writer.py::creole.rest_tools.clean_writer.rest2html"
87 "--deselect=creole/tests/test_cross_compare_all.py::CrossCompareTests::test_link"
88 "--deselect=creole/tests/test_cross_compare_all.py::CrossCompareTests::test_link_with_at_sign"
89 "--deselect=creole/tests/test_cross_compare_all.py::CrossCompareTests::test_link_with_unknown_protocol"
90 "--deselect=creole/tests/test_cross_compare_all.py::CrossCompareTests::test_link_without_title"
94 description = "Creole markup tools written in Python";
95 homepage = "https://github.com/jedie/python-creole";
96 changelog = "https://github.com/jedie/python-creole/releases/tag/v${version}";
97 license = licenses.gpl3Plus;
98 maintainers = with maintainers; [ hexa ];