From 0a39f28f48140bc9fe17630bc6c4abbb74eb7f0a Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Fri, 7 Oct 2022 15:03:56 -0300 Subject: [PATCH] sphinx-automodapi: init at 0.14.1 --- .../sphinx-automodapi/default.nix | 44 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/development/python-modules/sphinx-automodapi/default.nix diff --git a/pkgs/development/python-modules/sphinx-automodapi/default.nix b/pkgs/development/python-modules/sphinx-automodapi/default.nix new file mode 100644 index 000000000000..9786876fb66b --- /dev/null +++ b/pkgs/development/python-modules/sphinx-automodapi/default.nix @@ -0,0 +1,44 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +, sphinx +, gcc +, cython +}: + +buildPythonPackage rec { + pname = "sphinx-automodapi"; + version = "0.14.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "astropy"; + repo = pname; + rev = "v${version}"; + hash = "sha256-olD9LIyFCNEu287wQIRqoabfrdcdyZpNc69jq/e1304="; + }; + + propagatedBuildInputs = [ sphinx ]; + + # https://github.com/astropy/sphinx-automodapi/issues/155 + doCheck = false; + + checkInputs = [ + pytestCheckHook + gcc + cython + ]; + + pythonImportsCheck = [ "sphinx_automodapi" ]; + + meta = with lib; { + description = "Sphinx extension for generating API documentation"; + homepage = "https://github.com/astropy/sphinx-automodapi"; + license = licenses.bsd3; + maintainers = with maintainers; [ lovesegfault ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 75cbf33b249e..7bbf1a5deacf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10447,6 +10447,8 @@ in { spinners = callPackage ../development/python-modules/spinners { }; + sphinx-automodapi = callPackage ../development/python-modules/sphinx-automodapi { }; + sphinx-better-theme = callPackage ../development/python-modules/sphinx-better-theme { }; sphinx-book-theme = callPackage ../development/python-modules/sphinx-book-theme { };