unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#54791] [PATCH] gnu: Add python-shtab.
@ 2022-04-08 13:44 Vincent Prat
  2022-04-15 16:42 ` bug#54791: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Vincent Prat @ 2022-04-08 13:44 UTC (permalink / raw)
  To: 54791

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: 0001-gnu-Add-python-shtab.patch --]
[-- Type: text/x-patch, Size: 1903 bytes --]

From be2415cffa689af8cb6d5f507b9c597cf24a9f94 Mon Sep 17 00:00:00 2001
From: Vincent Prat <vprat@deeplinks.com>
Date: Fri, 8 Apr 2022 15:11:21 +0200
Subject: [PATCH] gnu: Add python-shtab.

* gnu/packages/python-xyz.scm (python-shtab): New variable.
---
 gnu/packages/python-xyz.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 55705ab2ea..8026a75536 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -29364,3 +29364,37 @@ writing STL files.  It supports both the text and binary forms of STL.")
 database from the asyncio (PEP-3156/tulip) framework.  It wraps
 asynchronous features of the Psycopg database driver.")
     (license license:bsd-3)))
+
+(define-public python-shtab
+  (package
+    (name "python-shtab")
+    (version "1.5.3")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "shtab" version))
+        (sha256
+          (base32 "127mymfm7r0hddk2vknqq34fj6dirj6ip990i3g4isx0lsd7pnsc"))))
+    (build-system python-build-system)
+    (native-inputs
+      (list bash
+            python-pytest
+            python-pytest-cov
+            python-pytest-timeout
+            python-setuptools-scm
+            python-wheel))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace
+             'check
+           (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+             (when tests?
+               (add-installed-pythonpath inputs outputs)
+               (invoke "pytest")))))))
+    (home-page "https://github.com/iterative/shtab")
+    (synopsis "Automagic shell tab completion for Python CLI applications")
+    (description
+      "This package automatically generates shell tab completion scripts for
+Python CLI apps.")
+    (license license:asl2.0)))
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#54791: [PATCH] gnu: Add python-shtab.
  2022-04-08 13:44 [bug#54791] [PATCH] gnu: Add python-shtab Vincent Prat
@ 2022-04-15 16:42 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2022-04-15 16:42 UTC (permalink / raw)
  To: Vincent Prat; +Cc: 54791-done

Hi,

Vincent Prat <vprat@deeplinks.com> skribis:

> From be2415cffa689af8cb6d5f507b9c597cf24a9f94 Mon Sep 17 00:00:00 2001
> From: Vincent Prat <vprat@deeplinks.com>
> Date: Fri, 8 Apr 2022 15:11:21 +0200
> Subject: [PATCH] gnu: Add python-shtab.
>
> * gnu/packages/python-xyz.scm (python-shtab): New variable.

Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-15 16:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-08 13:44 [bug#54791] [PATCH] gnu: Add python-shtab Vincent Prat
2022-04-15 16:42 ` bug#54791: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).