at 24.05-pre 1.7 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, unidecode 5, sphinx 6, pythonAtLeast 7, pythonOlder 8, pytestCheckHook 9, pytest-cov 10}: 11 12buildPythonPackage rec { 13 pname = "uqbar"; 14 version = "0.7.0"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-cEhWXGtMSXVjT5QigDedjT/lwYQnVqPCE5vbctXWznk="; 22 }; 23 24 propagatedBuildInputs = [ 25 unidecode 26 sphinx 27 ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 pytest-cov 32 ]; 33 34 pytestFlagsArray = [ 35 "tests/" 36 "-vv" 37 "-rf" 38 "--cov-branch" 39 "--cov-report=html" 40 "--cov-report=term" 41 "--doctest-modules" 42 ]; 43 44 disabledTests = [ 45 # UnboundLocalError: local variable 'output_path' referenced before 46 # assignment 47 "test_01" 48 # AssertionError: assert False 49 "test_sphinx_book_html_cached" 50 # FileNotFoundError: [Errno 2] No such file or directory: 'unflatten' 51 "test_sphinx_style_html" 52 # assert not ["\x1b[91mWARNING: dot command 'dot' cannot be run (needed for 53 # graphviz output), check the graphviz_dot setting\x1b[39;49;00m"] 54 "test_sphinx_style_latex" 55 ] 56 # assert not '\x1b[91m/build/uqbar-0.7.0/tests/fake_package/enums.py:docstring 57 ++ lib.optional (pythonAtLeast "3.11") "test_sphinx_style"; 58 59 pythonImportsCheck = [ "uqbar" ]; 60 61 meta = { 62 description = "Tools for creating Sphinx and Graphviz documentation"; 63 license = lib.licenses.mit; 64 homepage = "https://github.com/josiah-wolf-oberholtzer/uqbar"; 65 changelog = 66 "https://github.com/josiah-wolf-oberholtzer/uqbar/releases/tag/v${version}"; 67 maintainers = [ lib.maintainers.davisrichard437 ]; 68 }; 69}