unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#56028] [PATCH] gnu: Add python-pydantic-cli.
@ 2022-06-16 21:43 jgart via Guix-patches via
  2022-07-07 21:12 ` bug#56028: " Maxim Cournoyer
  0 siblings, 1 reply; 2+ messages in thread
From: jgart via Guix-patches via @ 2022-06-16 21:43 UTC (permalink / raw)
  To: 56028; +Cc: jgart

* 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





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

* bug#56028: [PATCH] gnu: Add python-pydantic-cli.
  2022-06-16 21:43 [bug#56028] [PATCH] gnu: Add python-pydantic-cli jgart via Guix-patches via
@ 2022-07-07 21:12 ` Maxim Cournoyer
  0 siblings, 0 replies; 2+ messages in thread
From: Maxim Cournoyer @ 2022-07-07 21:12 UTC (permalink / raw)
  To: jgart; +Cc: 56028-done

Hello,

jgart <jgart@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




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

end of thread, other threads:[~2022-07-07 21:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-16 21:43 [bug#56028] [PATCH] gnu: Add python-pydantic-cli jgart via Guix-patches via
2022-07-07 21:12 ` bug#56028: " Maxim Cournoyer

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).