From 40785b6dd06ad5627733f4d0bcfec87044ff5db3 Mon Sep 17 00:00:00 2001 From: Samuel Ainsworth Date: Fri, 27 Jun 2025 18:15:02 -0400 Subject: [PATCH] python3Packages.hatch-docstring-description: init at 1.1.1 --- .../hatch-docstring-description/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 4 ++ 2 files changed, 49 insertions(+) create mode 100644 pkgs/development/python-modules/hatch-docstring-description/default.nix diff --git a/pkgs/development/python-modules/hatch-docstring-description/default.nix b/pkgs/development/python-modules/hatch-docstring-description/default.nix new file mode 100644 index 000000000000..b591db9cd797 --- /dev/null +++ b/pkgs/development/python-modules/hatch-docstring-description/default.nix @@ -0,0 +1,45 @@ +{ + buildPythonPackage, + fetchFromGitHub, + hatch-vcs, + hatchling, + lib, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "hatch-docstring-description"; + version = "1.1.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "flying-sheep"; + repo = "hatch-docstring-description"; + tag = "v${version}"; + hash = "sha256-ouor0FV3qdXYJx5EWFUWSKp8Cc/EuD1WXrtLvbYG+XI="; + }; + + build-system = [ + hatchling + hatch-vcs + ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + disabledTests = [ + # See https://github.com/flying-sheep/hatch-docstring-description/issues/107 + "test_e2e[.]" + "test_e2e[src]" + ]; + + pythonImportsCheck = [ "hatch_docstring_description" ]; + + meta = { + description = "Derive PyPI package description from Python package docstring"; + homepage = "https://github.com/flying-sheep/hatch-docstring-description"; + license = lib.licenses.gpl3; + maintainers = with lib.maintainers; [ + samuela + ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 56ce5f4d779d..98f26f4200dc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6355,6 +6355,10 @@ self: super: with self; { hatch-babel = callPackage ../development/python-modules/hatch-babel { }; + hatch-docstring-description = + callPackage ../development/python-modules/hatch-docstring-description + { }; + hatch-fancy-pypi-readme = callPackage ../development/python-modules/hatch-fancy-pypi-readme { }; hatch-jupyter-builder = callPackage ../development/python-modules/hatch-jupyter-builder { };