diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-19 21:31:55 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-19 21:32:04 +0100 |
| commit | f0a484cc75e310742ef344b2062ca3c8e2e7b044 (patch) | |
| tree | 6ee38efb946d599da8bab11b605c013fcb43faea /gnu/packages/python-xyz.scm | |
| parent | 37759ed45482af333efe9b6f124209317034447c (diff) | |
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
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 54 |
1 files changed, 30 insertions, 24 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7d9a8f6dde9..bfc530b5c2a 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 |
