GNU bug report logs - #56028
[PATCH] gnu: Add python-pydantic-cli.

Previous Next

Package: guix-patches;

Reported by: jgart <jgart <at> dismail.de>

Date: Thu, 16 Jun 2022 21:44:02 UTC

Severity: normal

Tags: patch

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 56028 in the body.
You can then email your comments to 56028 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#56028; Package guix-patches. (Thu, 16 Jun 2022 21:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to jgart <jgart <at> dismail.de>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 16 Jun 2022 21:44:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jgart <jgart <at> dismail.de>
To: guix-patches <at> gnu.org
Cc: jgart <jgart <at> dismail.de>
Subject: [PATCH] gnu: Add python-pydantic-cli.
Date: Thu, 16 Jun 2022 16:43:19 -0500
* gnu/packages/python-xyz.scm (python-pydantic-cli): New variable.
---
 gnu/packages/python-xyz.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 63a3eb2a80..394c54a986 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5018,6 +5018,30 @@ (define-public python-pydantic
 errors when data is invalid.")
     (license license:expat)))
 
+(define-public python-pydantic-cli
+  (package
+    (name "python-pydantic-cli")
+    (version "4.3.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "pydantic_cli" version))
+        (sha256
+          (base32 "1068zki5fvdm2lhqfqhjf325kmr8v5qiwadcl5b5dy84xzhs8hvf"))))
+    (build-system python-build-system)
+    (propagated-inputs
+      (list python-pydantic))
+    (native-inputs
+      (list python-black
+            python-mypy
+            python-pytest))
+    (home-page "http://github.com/mpkocher/pydantic-cli")
+    (synopsis "Turn Pydantic defined Data Models into CLI Tools")
+    (description
+"Turn @code{python-pydantic} defined data models into CLI Tools and
+enable loading values from JSON files.")
+    (license license:expat)))
+
 (define-public python-pydocstyle
   (package
     (name "python-pydocstyle")
-- 
2.36.1





Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Thu, 07 Jul 2022 21:13:02 GMT) Full text and rfc822 format available.

Notification sent to jgart <jgart <at> dismail.de>:
bug acknowledged by developer. (Thu, 07 Jul 2022 21:13:02 GMT) Full text and rfc822 format available.

Message #10 received at 56028-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: jgart <jgart <at> dismail.de>
Cc: 56028-done <at> debbugs.gnu.org
Subject: Re: bug#56028: [PATCH] gnu: Add python-pydantic-cli.
Date: Thu, 07 Jul 2022 17:12:02 -0400
Hello,

jgart <jgart <at> dismail.de> writes:

> * gnu/packages/python-xyz.scm (python-pydantic-cli): New variable.
> ---
>  gnu/packages/python-xyz.scm | 24 ++++++++++++++++++++++++
>  1 file changed, 24 insertions(+)
>
> diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
> index 63a3eb2a80..394c54a986 100644
> --- a/gnu/packages/python-xyz.scm
> +++ b/gnu/packages/python-xyz.scm
> @@ -5018,6 +5018,30 @@ (define-public python-pydantic
>  errors when data is invalid.")
>      (license license:expat)))
>  
> +(define-public python-pydantic-cli
> +  (package
> +    (name "python-pydantic-cli")
> +    (version "4.3.0")
> +    (source
> +      (origin
> +        (method url-fetch)
> +        (uri (pypi-uri "pydantic_cli" version))
> +        (sha256
> +          (base32 "1068zki5fvdm2lhqfqhjf325kmr8v5qiwadcl5b5dy84xzhs8hvf"))))
> +    (build-system python-build-system)
> +    (propagated-inputs
> +      (list python-pydantic))
> +    (native-inputs
> +      (list python-black
> +            python-mypy
> +            python-pytest))
> +    (home-page "http://github.com/mpkocher/pydantic-cli")
> +    (synopsis "Turn Pydantic defined Data Models into CLI Tools")
> +    (description
> +"Turn @code{python-pydantic} defined data models into CLI Tools and
> +enable loading values from JSON files.")
> +    (license license:expat)))
> +
>  (define-public python-pydocstyle
>    (package
>      (name "python-pydocstyle")

I've reworked the description a bit and fixed the indentation via W-q in
Emacs, like so:

--8<---------------cut here---------------start------------->8---
modified   gnu/packages/python-xyz.scm
@@ -5112,23 +5112,23 @@ (define-public python-pydantic-cli
     (name "python-pydantic-cli")
     (version "4.3.0")
     (source
-      (origin
-        (method url-fetch)
-        (uri (pypi-uri "pydantic_cli" version))
-        (sha256
-          (base32 "1068zki5fvdm2lhqfqhjf325kmr8v5qiwadcl5b5dy84xzhs8hvf"))))
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "pydantic_cli" version))
+       (sha256
+        (base32 "1068zki5fvdm2lhqfqhjf325kmr8v5qiwadcl5b5dy84xzhs8hvf"))))
     (build-system python-build-system)
     (propagated-inputs
-      (list python-pydantic))
+     (list python-pydantic))
     (native-inputs
-      (list python-black
-            python-mypy
-            python-pytest))
+     (list python-black
+           python-mypy
+           python-pytest))
     (home-page "http://github.com/mpkocher/pydantic-cli")
-    (synopsis "Turn Pydantic defined Data Models into CLI Tools")
+    (synopsis "Turn Pydantic defined data models into CLI tools")
     (description
-"Turn @code{python-pydantic} defined data models into CLI Tools and
-enable loading values from JSON files.")
+     "@code{python-pydantic} enables specifying @acronym{CLI, Command Line
+Interfaces} via data models provided in the JSON format.")
     (license license:expat)))
 
 (define-public python-pydocstyle
--8<---------------cut here---------------end--------------->8---

Upon building it, I noticed that there appear to be no tests run,
despite providing pytest as a native input.

So I've fetched from git instead (with a comment explaining why), and
saw: Ran 35 tests in 0.094s; good!

I've also adjusted the home page URL to use HTTPS instead of HTTP.

Pushed as 08efb331d0.

Thanks!

Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 05 Aug 2022 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 258 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.