guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: Add python-docspec-python.


From: guix-commits
Subject: 02/02: gnu: Add python-docspec-python.
Date: Tue, 16 Jan 2024 05:57:18 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit 1fcf3d2a0c26f642a69ce5d192cc9575e70cd703
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Jan 16 11:56:34 2024 +0100

    gnu: Add python-docspec-python.
    
    * gnu/packages/python-xyz.scm (python-docspec-python): New variable.
    
    Change-Id: Ic607d0a34a8601dd464251edd8c8509314b7489c
---
 gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 3973b02ce7..7de2ecbe65 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -647,6 +647,36 @@ from JSON payloads using the @code{databind.core} 
framework.")
 documentation of programming languages.")
     (license license:expat)))
 
+(define-public python-docspec-python
+  (package
+    (name "python-docspec-python")
+    (version "2.2.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "docspec_python" version))
+       (sha256
+        (base32 "0n8m52vxmlvkj7p5jmd4rfdks65rrp4q4vzak44y6kbg9l5qa6y4"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:tests? #false  ;there are none
+      #:phases
+      '(modify-phases %standard-phases
+         (add-after 'unpack 'relax-requirements
+           (lambda _
+             ;; We don't have black 23.
+             (substitute* "pyproject.toml"
+               (("23.1.0") "22.3.0")))))))
+    (propagated-inputs (list python-black python-docspec python-nr-util))
+    (native-inputs (list python-poetry-core))
+    (home-page "https://github.com/NiklasRosenstein/docspec/";)
+    (synopsis "Produce docspec data from Python source code")
+    (description
+     "This package provides a parser based on @code{lib2to3} producing
+@code{docspec} data from Python source code.")
+    (license license:expat)))
+
 (define-public python-fire
   (package
     (name "python-fire")



reply via email to

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