python3Packages.sphinx-autodoc-typehints: init at 1.18.3

Required for building the psycopg documentation.
This commit is contained in:
Martin Weinelt
2022-07-17 21:05:42 +02:00
parent c7dbac1666
commit 52340cfdf6
2 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, sphinx
, pytestCheckHook
}:
let
pname = "sphinx-autodoc-typehints";
version = "1.18.3";
in
buildPythonPackage {
inherit pname version;
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "sphinx_autodoc_typehints";
inherit version;
hash = "sha256-wE2PjXDpiJYOJbIGrzmpDfhOfiwIW7JOEjvDaEAhsxM=";
};
propagatedBuildInputs = [
sphinx
];
checkInputs = [
pytestCheckHook
];
# requires spobjinv, nbtyping
doCheck = false;
pythonImportsCheck = [
"sphinx_autodoc_typehints"
];
meta = with lib; {
description = "Type hints (PEP 484) support for the Sphinx autodoc extension";
homepage = "https://github.com/tox-dev/sphinx-autodoc-typehints";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}

View File

@@ -10084,6 +10084,8 @@ in {
sphinx-autobuild = callPackage ../development/python-modules/sphinx-autobuild { };
sphinx-autodoc-typehints = callPackage ../development/python-modules/sphinx-autodoc-typehints { };
sphinx-basic-ng = callPackage ../development/python-modules/sphinx-basic-ng { };
sphinx-copybutton = callPackage ../development/python-modules/sphinx-copybutton { };