guix_mirror_bot pushed a commit to branch master
in repository guix.
commit f0a484cc75e310742ef344b2062ca3c8e2e7b044
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sun Oct 19 21:31:55 2025 +0100
gnu: python-txsni: Update to 0.2.0.
* gnu/packages/python-xyz.scm (python-txsni): Update to 0.2.0. Improve
style.
[source]: Use the latest git tag instead of commit.
[build-system]: Switch to pyproject-build-system.
[arguments] <test-backend>: Use 'custom.
<test-flags>: Run tests with twisted.
[native-inputs]: Add python-setuptools.
Change-Id: Ic65f89a40f07378b9743471b1be5f247ba5e27e0
---
gnu/packages/python-xyz.scm | 54 +++++++++++++++++++++++++--------------------
1 file changed, 30 insertions(+), 24 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7d9a8f6dde..bfc530b5c2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -31998,30 +31998,36 @@ happened, and what caused it.")
(license license:expat)))
(define-public python-txsni
- ;; We need a few commits on top of 0.1.9 for compatibility with newer
- ;; Python and OpenSSL.
- (let ((commit "5014c141a7acef63e20fcf6c36fa07f0cd754ce1")
- (revision "0"))
- (package
- (name "python-txsni")
- (version (git-version "0.1.9" revision commit))
- (home-page "https://github.com/glyph/txsni")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference (url home-page) (commit commit)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0imfxx4yjj1lbq0n5ad45al3wvv4qv96sivnc1r51i66mxi658z8"))))
- (build-system python-build-system)
- (propagated-inputs
- (list python-pyopenssl python-service-identity python-twisted))
- (synopsis "Run TLS servers with Twisted")
- (description
- "This package provides an easy-to-use SNI endpoint for use
-with the Twisted web framework.")
- (license license:expat))))
+ (package
+ (name "python-txsni")
+ (version "0.2.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/glyph/txsni")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1fl8xi7vl24hwbva5v41l6nsrbkj2l2mlsgcvdjxgph61aznwywq"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list #:test-backend #~'custom
+ #:test-flags #~(list "-m" "twisted.trial"
+ "--temp-directory=/tmp/_trial_temp"
+ "txsni")))
+ (native-inputs
+ (list python-setuptools))
+ (propagated-inputs
+ (list python-pyopenssl
+ python-service-identity
+ python-twisted))
+ (home-page "https://github.com/glyph/txsni")
+ (synopsis "Run TLS servers with Twisted")
+ (description
+ "This package provides an easy-to-use SNI endpoint for use with the
+Twisted web framework.")
+ (license license:expat)))
(define-public python-txacme
;; 0.9.3 tag was placed in 2020 and there a lot of changes providing