From d6f06e26cea96bf94a1cb263bd40621afb6f0872 Mon Sep 17 00:00:00 2001 From: Jake Forster Date: Wed, 20 Aug 2025 22:11:33 +0930 Subject: [PATCH] gnu: Add emacs-numpydoc. * gnu/packages/emacs-xyz.scm (emacs-numpydoc): New variable. Change-Id: I7324a6401439aa0ce562d894663e7ed7e4c1bc9e Reviewed-by: Cayetano Santos Signed-off-by: Sharlatan Hellseher --- gnu/packages/emacs-xyz.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 5ef9a134884..8574ce72919 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -38075,6 +38075,33 @@ corresponding Evil keys.") implementation of Windows NT and LanManager compatible password encryption.") (license license:gpl3+))) +(define-public emacs-numpydoc + (package + (name "emacs-numpydoc") + (version "0.9") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/douglasdavis/numpydoc.el") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1ld5m75mmfb7kp18sww5blvlazk0j1j0yhdkhsx1m624dq5rag1c")))) + (build-system emacs-build-system) + (arguments + (list #:test-command + #~(list "eldev" "--use-emacsloadpath" "-dtT" "-p" "test"))) + (native-inputs (list emacs-buttercup emacs-eldev)) + (propagated-inputs (list emacs-dash emacs-s)) + (home-page "https://github.com/douglasdavis/numpydoc.el") + (synopsis "Insert NumPy-style docstrings in Python functions") + (description + "This package can be used to insert NumPy-style docstrings in Python +function definitions. The generated docstring includes argument names, type +hints, exceptions, and the return type hint.") + (license license:gpl3+))) + (define-public emacs-nushell-mode (let ((commit "c179c3cf573b2cc9421dc08bf47e2d619c7791ee") (revision "0"))