guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 78a9398975fcf576fd0648a8a28151d4b4e15cfe
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Dec 28 22:02:42 2025 +0100
gnu: python-pysctp: Update to 0.7.2.
* gnu/packages/networking.scm (python-pysctp): Update to 0.7.2.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]: Improve style.
<#:test-backend>: Set it, because pytest fails to run here.
[native-inputs]: Add python-setuptools.
Change-Id: Id45e482d381ce4ffae461350d34556c1a689db03
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/networking.scm | 43 ++++++++++++++++++++++++-------------------
1 file changed, 24 insertions(+), 19 deletions(-)
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 969d7fa030..a2e1202a93 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -785,29 +785,34 @@ It also includes some SCTP-related helper utilities.")
(define-public python-pysctp
(package
(name "python-pysctp")
- (version "0.6.1")
+ (version "0.7.2")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "pysctp" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/p1sec/pysctp")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "14h2qlmfi24bizhvvqkfqfa78pzm3911ibrzy9k94i97xy1978dy"))))
- (build-system python-build-system)
- (inputs
- (list lksctp-tools))
+ (base32 "03nw6szak7xdcndyg0m62l4lmkv2bl8ixl7pa0ximwlk4v26wc2w"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:tests? #f ;; tests require network
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch-setup.py
- (lambda _
- (substitute* "setup.py"
- (("include_dirs\\s*=.*")
- (string-append "include_dirs = ['.'] + '"
- (getenv "C_INCLUDE_PATH") "'.split(':'),"))
- (("library_dirs\\s*=.*")
- (string-append "library_dirs = '"
- (getenv "LIBRARY_PATH") "'.split(':'),"))))))))
+ (list
+ #:tests? #f ;tests require network
+ #:test-backend #~'unittest
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-setup.py
+ (lambda _
+ (substitute* "setup.py"
+ (("include_dirs\\s*=.*")
+ (string-append "include_dirs = ['.'] + '"
+ (getenv "C_INCLUDE_PATH") "'.split(':'),"))
+ (("library_dirs\\s*=.*")
+ (string-append "library_dirs = '"
+ (getenv "LIBRARY_PATH") "'.split(':'),"))))))))
+ (native-inputs (list python-setuptools))
+ (inputs (list lksctp-tools))
(home-page "https://github.com/p1sec/pysctp")
(synopsis "Python module for the SCTP protocol stack and library")
(description "@code{pysctp} implements the SCTP socket API. You need a