Loading pkgs/development/python-modules/sphinx-automodapi/default.nix +17 −13 Original line number Diff line number Diff line { lib , buildPythonPackage , cython , fetchFromGitHub , fetchurl , gcc , graphviz , pytestCheckHook , pythonOlder , setuptools-scm , git , sphinx , pytestCheckHook , cython , gcc , graphviz }: buildPythonPackage rec { pname = "sphinx-automodapi"; version = "0.16.0"; format = "setuptools"; pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "astropy"; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-7/b3PlgoqXyzmj4KDoHJf5gd3SUSiyhkpcDWl3u+0Bs="; rev = "v${version}"; hash = "sha256-ecOwBtJBkGsBShMG5fK22V1EHLe6pCmOdHPrS/k6rno="; leaveDotGit = true; }; nativeBuildInputs = [ setuptools-scm git ]; propagatedBuildInputs = [ sphinx ]; # https://github.com/astropy/sphinx-automodapi/issues/155 Loading @@ -34,11 +41,8 @@ buildPythonPackage rec { }; postPatch = '' substituteInPlace "sphinx_automodapi/tests/helpers.py" \ --replace '[0]), None)' "[0]), (None, '${testInventory}'))" substituteInPlace "sphinx_automodapi/tests/test_cases.py" \ --replace '[0]), None)' "[0]), (None, '${testInventory}'))" substituteInPlace sphinx_automodapi/tests/{helpers,test_cases}.py \ --replace ", None)" ", (None, '${testInventory}'))" ''; nativeCheckInputs = [ Loading Loading
pkgs/development/python-modules/sphinx-automodapi/default.nix +17 −13 Original line number Diff line number Diff line { lib , buildPythonPackage , cython , fetchFromGitHub , fetchurl , gcc , graphviz , pytestCheckHook , pythonOlder , setuptools-scm , git , sphinx , pytestCheckHook , cython , gcc , graphviz }: buildPythonPackage rec { pname = "sphinx-automodapi"; version = "0.16.0"; format = "setuptools"; pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "astropy"; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-7/b3PlgoqXyzmj4KDoHJf5gd3SUSiyhkpcDWl3u+0Bs="; rev = "v${version}"; hash = "sha256-ecOwBtJBkGsBShMG5fK22V1EHLe6pCmOdHPrS/k6rno="; leaveDotGit = true; }; nativeBuildInputs = [ setuptools-scm git ]; propagatedBuildInputs = [ sphinx ]; # https://github.com/astropy/sphinx-automodapi/issues/155 Loading @@ -34,11 +41,8 @@ buildPythonPackage rec { }; postPatch = '' substituteInPlace "sphinx_automodapi/tests/helpers.py" \ --replace '[0]), None)' "[0]), (None, '${testInventory}'))" substituteInPlace "sphinx_automodapi/tests/test_cases.py" \ --replace '[0]), None)' "[0]), (None, '${testInventory}'))" substituteInPlace sphinx_automodapi/tests/{helpers,test_cases}.py \ --replace ", None)" ", (None, '${testInventory}'))" ''; nativeCheckInputs = [ Loading