diff options
| author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-07-17 21:05:42 +0200 |
|---|---|---|
| committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2022-07-21 22:35:25 +0200 |
| commit | 52340cfdf609f78cf6eb54d4ecea4413b4932ac4 (patch) | |
| tree | ba82fd156c1d49d9c606bec5ed04e6884f740158 /pkgs/development/python-modules | |
| parent | c7dbac166640f3938736b96f0caaf9079c9875e4 (diff) | |
python3Packages.sphinx-autodoc-typehints: init at 1.18.3
Required for building the psycopg documentation.
Diffstat (limited to 'pkgs/development/python-modules')
| -rw-r--r-- | pkgs/development/python-modules/sphinx-autodoc-typehints/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/sphinx-autodoc-typehints/default.nix b/pkgs/development/python-modules/sphinx-autodoc-typehints/default.nix new file mode 100644 index 000000000000..769636976385 --- /dev/null +++ b/pkgs/development/python-modules/sphinx-autodoc-typehints/default.nix @@ -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 ]; + }; +} |
