Merge pull request #288760 from fabaff/uqbar-fix
python311Packages.uqbar: 0.7.0 -> 0.7.1
This commit is contained in:
commit
c60755d528
@ -1,30 +1,36 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, unidecode
|
, pytestCheckHook
|
||||||
, sphinx
|
|
||||||
, pythonAtLeast
|
, pythonAtLeast
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, pytestCheckHook
|
, setuptools
|
||||||
, pytest-cov
|
, sphinx
|
||||||
|
, unidecode
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "uqbar";
|
pname = "uqbar";
|
||||||
version = "0.7.0";
|
version = "0.7.1";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-cEhWXGtMSXVjT5QigDedjT/lwYQnVqPCE5vbctXWznk=";
|
hash = "sha256-pZ2sNs9uK49PK8qxRRqpGMEI1Xr6Fn+fxptlEVv3GSk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i '/"black"/d' pyproject.toml
|
sed -i pyproject.toml \
|
||||||
|
-e '/"black"/d' \
|
||||||
|
-e "/--cov/d"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
unidecode
|
unidecode
|
||||||
sphinx
|
sphinx
|
||||||
@ -32,22 +38,10 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
pytest-cov
|
|
||||||
];
|
|
||||||
|
|
||||||
pytestFlagsArray = [
|
|
||||||
"tests/"
|
|
||||||
"-vv"
|
|
||||||
"-rf"
|
|
||||||
"--cov-branch"
|
|
||||||
"--cov-report=html"
|
|
||||||
"--cov-report=term"
|
|
||||||
"--doctest-modules"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# UnboundLocalError: local variable 'output_path' referenced before
|
# UnboundLocalError: local variable 'output_path' referenced before assignment
|
||||||
# assignment
|
|
||||||
"test_01"
|
"test_01"
|
||||||
# AssertionError: assert False
|
# AssertionError: assert False
|
||||||
"test_sphinx_book_html_cached"
|
"test_sphinx_book_html_cached"
|
||||||
@ -56,18 +50,23 @@ buildPythonPackage rec {
|
|||||||
# assert not ["\x1b[91mWARNING: dot command 'dot' cannot be run (needed for
|
# assert not ["\x1b[91mWARNING: dot command 'dot' cannot be run (needed for
|
||||||
# graphviz output), check the graphviz_dot setting\x1b[39;49;00m"]
|
# graphviz output), check the graphviz_dot setting\x1b[39;49;00m"]
|
||||||
"test_sphinx_style_latex"
|
"test_sphinx_style_latex"
|
||||||
]
|
] ++ lib.optional (pythonAtLeast "3.11") [
|
||||||
# assert not '\x1b[91m/build/uqbar-0.7.0/tests/fake_package/enums.py:docstring
|
# assert not '\x1b[91m/build/uqbar-0.7.0/tests/fake_package/enums.py:docstring
|
||||||
++ lib.optional (pythonAtLeast "3.11") "test_sphinx_style";
|
"test_sphinx_style"
|
||||||
|
] ++ lib.optional (pythonAtLeast "3.12") [
|
||||||
|
# https://github.com/josiah-wolf-oberholtzer/uqbar/issues/93
|
||||||
|
"objects.get_vars"
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "uqbar" ];
|
pythonImportsCheck = [
|
||||||
|
"uqbar"
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
description = "Tools for creating Sphinx and Graphviz documentation";
|
description = "Tools for creating Sphinx and Graphviz documentation";
|
||||||
license = lib.licenses.mit;
|
|
||||||
homepage = "https://github.com/josiah-wolf-oberholtzer/uqbar";
|
homepage = "https://github.com/josiah-wolf-oberholtzer/uqbar";
|
||||||
changelog =
|
changelog = "https://github.com/josiah-wolf-oberholtzer/uqbar/releases/tag/v${version}";
|
||||||
"https://github.com/josiah-wolf-oberholtzer/uqbar/releases/tag/v${version}";
|
license = licenses.mit;
|
||||||
maintainers = [ lib.maintainers.davisrichard437 ];
|
maintainers = with maintainers; [ davisrichard437 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user