diff options
Diffstat (limited to 'pkgs/development/python-modules/uqbar/default.nix')
-rw-r--r-- | pkgs/development/python-modules/uqbar/default.nix | 77 |
1 files changed, 41 insertions, 36 deletions
diff --git a/pkgs/development/python-modules/uqbar/default.nix b/pkgs/development/python-modules/uqbar/default.nix index c7c6e8e2eea6a..63eaa24ab4fbf 100644 --- a/pkgs/development/python-modules/uqbar/default.nix +++ b/pkgs/development/python-modules/uqbar/default.nix @@ -1,24 +1,27 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, setuptools -, sphinx -, unidecode +{ + lib, + buildPythonPackage, + fetchPypi, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + defusedxml, + setuptools, + sphinx, + typing-extensions, + unidecode, }: buildPythonPackage rec { pname = "uqbar"; - version = "0.7.3"; + version = "0.7.4"; pyproject = true; disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-9KQmLCsIiHcdiAu4GeEu+wa3lGwEZOO+oHWuhFNosR0="; + hash = "sha256-q4p+ki5wA/gYGWnt2tzCiEakk4fBl9P96ONz2ZxlCCg="; }; postPatch = '' @@ -27,40 +30,42 @@ buildPythonPackage rec { -e "/--cov/d" ''; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ unidecode sphinx ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - disabledTests = [ - # UnboundLocalError: local variable 'output_path' referenced before assignment - "test_01" - # AssertionError: assert False - "test_sphinx_book_html_cached" - # FileNotFoundError: [Errno 2] No such file or directory: 'unflatten' - "test_sphinx_style_html" - # assert not ["\x1b[91mWARNING: dot command 'dot' cannot be run (needed for - # graphviz output), check the graphviz_dot setting\x1b[39;49;00m"] - "test_sphinx_style_latex" - ] ++ lib.optional (pythonAtLeast "3.11") [ - # assert not '\x1b[91m/build/uqbar-0.7.0/tests/fake_package/enums.py:docstring - "test_sphinx_style" - ] ++ lib.optional (pythonAtLeast "3.12") [ - # https://github.com/josiah-wolf-oberholtzer/uqbar/issues/93 - "objects.get_vars" + checkInputs = [ + defusedxml + typing-extensions ]; - pythonImportsCheck = [ - "uqbar" - ]; + disabledTests = + [ + # UnboundLocalError: local variable 'output_path' referenced before assignment + "test_01" + # AssertionError: assert False + "test_sphinx_book_html_cached" + # FileNotFoundError: [Errno 2] No such file or directory: 'unflatten' + "test_sphinx_style_html" + # assert not ["\x1b[91mWARNING: dot command 'dot' cannot be run (needed for + # graphviz output), check the graphviz_dot setting\x1b[39;49;00m"] + "test_sphinx_style_latex" + ] + ++ lib.optional (pythonAtLeast "3.11") [ + # assert not '\x1b[91m/build/uqbar-0.7.0/tests/fake_package/enums.py:docstring + "test_sphinx_style" + ] + ++ lib.optional (pythonAtLeast "3.12") [ + # https://github.com/josiah-wolf-oberholtzer/uqbar/issues/93 + "objects.get_vars" + ]; + + pythonImportsCheck = [ "uqbar" ]; meta = with lib; { description = "Tools for creating Sphinx and Graphviz documentation"; |