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

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



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

From 6358a97915e91a49eb9fff85729a60e58ff920d2 Mon Sep 17 00:00:00 2001
From: Vincent Prat <vprat@deeplinks.com>
Date: Fri, 8 Apr 2022 16:29:38 +0200
Subject: [PATCH] gnu: Add python-verspec.

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 55705ab2ea..bd503b2480 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -29364,3 +29364,31 @@ 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-verspec
+  (package
+    (name "python-verspec")
+    (version "0.1.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "verspec" version))
+              (sha256
+               (base32
+                "07n06wv85fm4vl1ird2mja0823js3x322wgs9gdnq1djjyk4ql64"))))
+    (build-system python-build-system)
+    (native-inputs (list python-coverage python-flake8 python-mypy
+                         python-pretend python-pytest))
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda* (#:key tests? inputs outputs #:allow-other-keys)
+                      (when tests?
+                        (add-installed-pythonpath inputs outputs)
+                        (invoke "touch" "test/__init__.py")
+                        (invoke "pytest")))))))
+    (home-page "https://github.com/jimporter/verspec")
+    (synopsis "Flexible version handling for Python")
+    (description
+     "Python library for handling software versions and specifiers, adapted
+from the packaging package.")
+    (license (list license:bsd-2 license:asl2.0))))
-- 
2.30.2


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

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

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

Vincent Prat <vprat@deeplinks.com> skribis:

> From 6358a97915e91a49eb9fff85729a60e58ff920d2 Mon Sep 17 00:00:00 2001
> From: Vincent Prat <vprat@deeplinks.com>
> Date: Fri, 8 Apr 2022 16:29:38 +0200
> Subject: [PATCH] gnu: Add python-verspec.
>
> * gnu/packages/python.xyz.scm (python-verspec): New variable.

Applied with the changes below, as per
<https://guix.gnu.org/manual/devel/en/html_node/Synopses-and-Descriptions.html>.

Thanks,
Ludo’.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 672 bytes --]

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2278d7fa85..b3187f97be 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -29489,8 +29489,8 @@ (define-public python-verspec
     (home-page "https://github.com/jimporter/verspec")
     (synopsis "Flexible version handling for Python")
     (description
-     "Python library for handling software versions and specifiers, adapted
-from the packaging package.")
+     "This Python library handles software versions and specifiers.  It is
+adapted from the @code{packaging} package.")
     (license (list license:bsd-2 license:asl2.0))))
 
 (define-public python-shtab

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-08 14:32 [bug#54792] [PATCH] gnu: Add python-verspec Vincent Prat
2022-04-15 16:48 ` bug#54792: " 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).