diff --git a/pkgs/development/python-modules/hatch-sphinx/default.nix b/pkgs/development/python-modules/hatch-sphinx/default.nix new file mode 100644 index 000000000000..a9454511dd6a --- /dev/null +++ b/pkgs/development/python-modules/hatch-sphinx/default.nix @@ -0,0 +1,60 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + # build-system + hatch-vcs, + hatchling, + + # dependencies + sphinx, + + # tests + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "hatch-sphinx"; + version = "0.0.4"; + pyproject = true; + + src = fetchFromGitHub { + owner = "llimeht"; + repo = "hatch-sphinx"; + tag = "v${version}"; + hash = "sha256-8g0UkDMf05CVd2VbnV30pZpQ9chJhCkKfci7zmcIOoQ="; + }; + + build-system = [ + hatch-vcs + hatchling + ]; + + dependencies = [ + hatchling + sphinx + ]; + + pythonImportsCheck = [ "hatch_sphinx" ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + disabledTests = [ + # /nix/store/62fdlzq1x1ak2lsxp4ij7ip5k9nia3hc-python3-3.13.7/bin/python3.13: No module named build + "test_tool_apidoc" + "test_tool_build" + "test_tool_custom_lists_globs" + "test_tool_custom_lists_noglobs" + "test_tool_custom_strings" + ]; + + meta = { + description = "Hatchling build plugin for Sphinx documentation"; + homepage = "https://github.com/llimeht/hatch-sphinx"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ GaetanLepage ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f27d6f7ad433..7631674674ae 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6558,6 +6558,8 @@ self: super: with self; { hatch-requirements-txt = callPackage ../development/python-modules/hatch-requirements-txt { }; + hatch-sphinx = callPackage ../development/python-modules/hatch-sphinx { }; + hatch-vcs = callPackage ../development/python-modules/hatch-vcs { }; hatchling = callPackage ../development/python-modules/hatchling { };