guix-commits
[Top][All Lists]
Advanced

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

12/131: gnu: python-websockets: Fix Python package name.


From: guix-commits
Subject: 12/131: gnu: python-websockets: Fix Python package name.
Date: Fri, 29 Jan 2021 09:21:44 -0500 (EST)

apteryx pushed a commit to branch cu/farewell-to-pythonpath
in repository guix.

commit bd078e64df9d16728bcb6921c35c5099960cd841
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Thu Jan 7 13:49:01 2021 +0100

    gnu: python-websockets: Fix Python package name.
    
    * gnu/packages/python-web.scm (python-websockets) [arguments]: Add new
    phase to fix package name.
---
 gnu/packages/python-web.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 2bb999e..7ba073d 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -5087,7 +5087,15 @@ Plus all the standard features of requests:
          (base32
           "03s3ml6sbki24aajllf8aily0xzrn929zxi84p50zkkbikdd4raw"))))
     (build-system python-build-system)
-    (arguments '(#:tests? #f))  ; Tests not included in release tarball.
+    (arguments
+     '(#:tests? #f  ; Tests not included in release tarball.
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-websockets-package-name-requirement
+           (lambda* (#:key inputs #:allow-other-keys)
+             ;; Python package names use dot as separator.
+             (substitute* "setup.py"
+               (("websockets/extensions") "websockets.extensions")))))))
     (home-page "https://github.com/aaugustin/websockets";)
     (synopsis
      "Python implementation of the WebSocket Protocol (RFC 6455 & 7692)")



reply via email to

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