guix-patches
[Top][All Lists]
Advanced

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

[bug#77895] [PATCH 2/7] gnu: python-suds: Fix dist-info.


From: Nicolas Graves
Subject: [bug#77895] [PATCH 2/7] gnu: python-suds: Fix dist-info.
Date: Fri, 18 Apr 2025 13:46:20 +0200

* gnu/packages/python-web.scm (python-suds)
[arguments]{phases}: Add phase 'add-custom-dist-info.
---
 gnu/packages/python-web.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index e05ac25563..722568fee6 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -10592,6 +10592,22 @@ (define-public python-suds
        (sha256
         (base32 "1byyg7b2ixpr8hc849a6dd0qn5daxqawz6lb3php8lrmsb1n5cc3"))))
     (build-system pyproject-build-system)
+    (arguments
+     (list #:phases
+           #~(modify-phases %standard-phases
+               ;; XXX: chirp expects suds instead of suds_community
+               (add-after 'install 'add-custom-dist-info
+                 (lambda _
+                   (for-each
+                    (lambda (dir)
+                      (with-directory-excursion (dirname dir)
+                        (symlink
+                         (basename dir)
+                         (string-append "suds-" #$version ".dist-info"))))
+                    (find-files #$output
+                                (lambda (file stat)
+                                  (string-suffix? ".dist-info" file))
+                                #:directories? #t)))))))
     (native-inputs
      (list python-pytest
            python-setuptools
-- 
2.49.0






reply via email to

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