diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-12-28 22:02:42 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-31 17:11:49 +0000 |
| commit | 78a9398975fcf576fd0648a8a28151d4b4e15cfe (patch) | |
| tree | d99a6d7fb39915808b87ea0cc1420f0a1fdd0e9e /gnu | |
| parent | e5b8f6d0b54616051407b6855c511deb02234f22 (diff) | |
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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/networking.scm | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 969d7fa0302..a2e1202a934 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 |
