mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 16:45:51 +03:00
Merge pull request #194973 from lovesegfault/sphinx-automodapi
This commit is contained in:
commit
d8248ab1f7
@ -1,11 +1,13 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
|
, cython
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, fetchurl
|
||||||
|
, gcc
|
||||||
|
, graphviz
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, sphinx
|
, sphinx
|
||||||
, gcc
|
|
||||||
, cython
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -25,12 +27,22 @@ buildPythonPackage rec {
|
|||||||
propagatedBuildInputs = [ sphinx ];
|
propagatedBuildInputs = [ sphinx ];
|
||||||
|
|
||||||
# https://github.com/astropy/sphinx-automodapi/issues/155
|
# https://github.com/astropy/sphinx-automodapi/issues/155
|
||||||
doCheck = false;
|
testInventory = fetchurl {
|
||||||
|
# Originally: https://docs.python.org/3/objects.inv
|
||||||
|
url = "https://web.archive.org/web/20221007193144/https://docs.python.org/3/objects.inv";
|
||||||
|
hash = "sha256-1cbUmdJJSoifkiIYa70SxnLsaK3F2gvnTEWo9vo/6rY=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace "sphinx_automodapi/tests/helpers.py" \
|
||||||
|
--replace '[0]), None)' "[0]), (None, '${testInventory}'))"
|
||||||
|
'';
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
gcc
|
|
||||||
cython
|
cython
|
||||||
|
gcc
|
||||||
|
graphviz
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "sphinx_automodapi" ];
|
pythonImportsCheck = [ "sphinx_automodapi" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user