diff --git a/pkgs/by-name/to/todoman/package.nix b/pkgs/by-name/to/todoman/package.nix index 75adb0425cc97..8faf54d4222d8 100644 --- a/pkgs/by-name/to/todoman/package.nix +++ b/pkgs/by-name/to/todoman/package.nix @@ -4,22 +4,26 @@ jq, lib, python3, + sphinxHook, }: python3.pkgs.buildPythonApplication rec { pname = "todoman"; - version = "4.4.0"; + version = "4.5.0"; pyproject = true; src = fetchFromGitHub { owner = "pimutils"; repo = "todoman"; rev = "refs/tags/v${version}"; - hash = "sha256-5tQaNT6QVN9mxa9t6OvMux4ZGy4flUqszTAwet2QL0w="; + hash = "sha256-sk5LgFNo5Dc+oHCLu464Q1g0bk1QGsA7xMtMiits/8c="; }; nativeBuildInputs = [ installShellFiles + sphinxHook + python3.pkgs.sphinx-click + python3.pkgs.sphinx-rtd-theme ]; build-system = with python3.pkgs; [ @@ -34,9 +38,7 @@ python3.pkgs.buildPythonApplication rec { humanize icalendar parsedatetime - python-dateutil pyxdg - pytz tabulate urwid ]; @@ -44,8 +46,9 @@ python3.pkgs.buildPythonApplication rec { nativeCheckInputs = with python3.pkgs; [ freezegun hypothesis - pytestCheckHook pytest-cov-stub + pytestCheckHook + pytz ]; postInstall = '' diff --git a/pkgs/development/python-modules/sphinx-click/default.nix b/pkgs/development/python-modules/sphinx-click/default.nix new file mode 100644 index 0000000000000..81ac35a5131ca --- /dev/null +++ b/pkgs/development/python-modules/sphinx-click/default.nix @@ -0,0 +1,59 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + sphinxHook, + # Build system + pbr, + setuptools, + # Dependencies + click, + docutils, + sphinx, + # Checks + pytestCheckHook, + defusedxml, +}: + +buildPythonPackage rec { + pname = "sphinx-click"; + version = "6.0.0"; + pyproject = true; + + build-system = [ + pbr + setuptools + ]; + + nativeBuildInputs = [ + sphinxHook + ]; + + dependencies = [ + click + docutils + sphinx + ]; + + nativeCheckInputs = [ + pytestCheckHook + defusedxml + ]; + + pythonImportsCheck = [ + "sphinx_click" + ]; + + src = fetchPypi { + inherit version; + pname = "sphinx_click"; + hash = "sha256-9dZkMh3AxmIv8Bnx4chOWM4M7P3etRDgBM9gwqOrRls="; + }; + + meta = { + description = "Sphinx extension that automatically documents click applications"; + homepage = "https://github.com/click-contrib/sphinx-click"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ antonmosich ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 835cba89e79e1..0390abd70eb47 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14925,6 +14925,8 @@ self: super: with self; { sphinx-book-theme = callPackage ../development/python-modules/sphinx-book-theme { }; + sphinx-click = callPackage ../development/python-modules/sphinx-click { }; + sphinx-codeautolink = callPackage ../development/python-modules/sphinx-codeautolink { }; sphinx-comments = callPackage ../development/python-modules/sphinx-comments { };