guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

25/26: gnu: Add python-jsonargparse.


From: guix-commits
Subject: 25/26: gnu: Add python-jsonargparse.
Date: Wed, 10 May 2023 13:31:01 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit ff59c49c44d81f564874fc2d604dbfae6d35148d
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Wed May 10 18:22:11 2023 +0200

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 772de8fc78..8bd43cb6d3 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3385,6 +3385,53 @@ audio playback capability for Python 3 on OSX, Windows, 
and Linux.")
 Python.")
     (license license:expat)))
 
+(define-public python-jsonargparse
+  (package
+    (name "python-jsonargparse")
+    (version "4.21.1")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "jsonargparse" version))
+              (sha256
+               (base32
+                "1k3b60x0zf86fh50y2jyby30gksqriyvvpfnf5mqq0qn7jih01y7"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:test-flags
+      '(list "-k" (string-append "not test_env_prefix"
+                                 " and not test_basemodel"
+                                 " and not test_field_default_factory"
+                                 " and not test_field_description"
+                                 " and not 
test_get_param_relative_import_from_init"
+                                 ;; Strangely, the arguments are interpreted
+                                 ;; as arguments to pytest.
+                                 " and not test_pydantic_types"))))
+    (propagated-inputs
+     (list python-contextvars
+           python-dataclasses
+           python-docstring-parser
+           python-pyyaml
+           python-typeshed-client))
+    (native-inputs
+     (list python-attrs
+           python-coverage
+           python-pre-commit
+           python-pycodestyle
+           python-pydantic
+           python-pytest
+           python-pytest-subtests
+           python-responses
+           python-tox
+           python-types-requests))
+    (home-page "https://github.com/omni-us/jsonargparse/";)
+    (synopsis "Implement minimal boilerplate CLIs derived from type hints")
+    (description
+     "This package lets you implement minimal boilerplate CLIs derived from
+type hints and parse from command line, config files and environment
+variables.")
+    (license license:expat)))
+
 (define-public python-simplejson
   (package
     (name "python-simplejson")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]