* [bug#39028] [PATCH] gnu: Add python-asyncssh and dependencies
@ 2020-01-08 9:10 Lars-Dominik Braun
2020-01-09 14:15 ` zimoun
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Lars-Dominik Braun @ 2020-01-08 9:10 UTC (permalink / raw)
To: 39028
* gnu/packages/python-crypto.scm
(python-cryptography-vectors): Version bump to 2.8
(python-cryptography): Version bump to 2.8
(python-pyopenssl)[arguments]: Disable failing tests
* gnu/packages/python-xyz.scm (python-asyncssh): New variable
(python-gssapi): New variable
(python-k5test): New variable
(python-forbiddenfruit): New variable
(python-shouldbe): New variable
---
gnu/packages/python-crypto.scm | 14 ++-
gnu/packages/python-xyz.scm | 164 +++++++++++++++++++++++++++++++++
2 files changed, 173 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 43a0d95ddc..eb5be5e794 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -361,14 +361,14 @@ is used by the Requests library to verify HTTPS requests.")
(define-public python-cryptography-vectors
(package
(name "python-cryptography-vectors")
- (version "2.7")
+ (version "2.8")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cryptography_vectors" version))
(sha256
(base32
- "1g38zw90510azyfrj6mxbslx2gp9yrnv5dac0w2819k9ssdznbgi"))))
+ "05pi3shqz0fgvy0d5yazza67bbnam8fkrx2ayrrclgkaqms23lvc"))))
(build-system python-build-system)
(home-page "https://github.com/pyca/cryptography")
(synopsis "Test vectors for the cryptography package")
@@ -383,14 +383,14 @@ is used by the Requests library to verify HTTPS requests.")
(define-public python-cryptography
(package
(name "python-cryptography")
- (version "2.7")
+ (version "2.8")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cryptography" version))
(sha256
(base32
- "1inlnr36kl36551c9rcad99jmhk81v33by3glkadwdcgmi17fd76"))))
+ "0l8nhw14npknncxdnp7n4hpmjyscly6g7fbivyxkjwvlv071zniw"))))
(build-system python-build-system)
(inputs
`(("openssl" ,openssl)))
@@ -456,7 +456,11 @@ message digests and key derivation functions.")
"not test_fallback_default_verify_paths "
;; This test attempts to make a connection to
;; an external web service.
- "and not test_set_default_verify_paths")))))))
+ "and not test_set_default_verify_paths "
+ ;; These fail for unknown reasons.
+ "and not test_add_extra_chain_cert "
+ "and not test_use_certificate_chain_file_bytes "
+ "and not test_use_certificate_chain_file_unicode")))))))
(propagated-inputs
`(("python-cryptography" ,python-cryptography)
("python-six" ,python-six)))
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 194d8b8b0c..ae69fc974c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -112,6 +112,7 @@
#:use-module (gnu packages icu4c)
#:use-module (gnu packages image)
#:use-module (gnu packages imagemagick)
+ #:use-module (gnu packages kerberos)
#:use-module (gnu packages libevent)
#:use-module (gnu packages libffi)
#:use-module (gnu packages linux)
@@ -17117,3 +17118,166 @@ scripts to load entry points more quickly.")
functional combinators. Parser combinators are just higher-order functions
that take parsers as their arguments and return them as result values.")
(license license:expat)))
+
+(define-public python-asyncssh
+ (package
+ (name "python-asyncssh")
+ (version "2.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "asyncssh" version))
+ (sha256
+ (base32
+ "101kxyydrps9lc716vjs0nrvzfjp8644iir1xm19pl0ma73b9l0r"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-cryptography" ,python-cryptography)
+ ("python-pyopenssl" ,python-pyopenssl)
+ ("python-gssapi" ,python-gssapi)
+ ("python-bcrypt" ,python-bcrypt)))
+ ;; required for test suite
+ (native-inputs
+ `(("openssh" ,openssh)
+ ("openssl" ,openssl)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'disable-tests
+ (lambda* _
+ (substitute* "tests/test_agent.py"
+ ;; Test fails for unknown reason
+ (("async def test_confirm")
+ "@unittest.skip('disabled by guix')\n "
+ "async def test_confirm")))))))
+ (home-page "https://asyncssh.readthedocs.io/")
+ (synopsis
+ "Asynchronous SSHv2 client and server library")
+ (description
+ "AsyncSSH is a Python package which provides an asynchronous client and
+server implementation of the SSHv2 protocol on top of the Python 3.6+ asyncio
+framework")
+ (license license:epl2.0)))
+
+(define-public python-gssapi
+ (package
+ (name "python-gssapi")
+ (version "1.6.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "gssapi" version))
+ (sha256
+ (base32
+ "1gymg4asvwrz7y13qpwp2s5g8qwq179d72gkj09q6bfcgs82l5wr"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-decorator" ,python-decorator)
+ ("python-six" ,python-six)))
+ (inputs
+ `(("mit-krb5" ,mit-krb5)))
+ ;; for tests
+ (native-inputs
+ `(("python-shouldbe" ,python-shouldbe)
+ ("python-parameterized" ,python-parameterized)
+ ("python-k5test" ,python-k5test)
+ ("python-nose" ,python-nose)))
+ (home-page
+ "https://github.com/pythongssapi/python-gssapi")
+ (synopsis "Python GSSAPI Wrapper")
+ (description "Python-GSSAPI provides both low-level and high level wrappers
+around the GSSAPI C libraries. While it focuses on the Kerberos mechanism, it
+should also be useable with other GSSAPI mechanisms.")
+ (license license:isc)))
+
+(define-public python-k5test
+ (package
+ (name "python-k5test")
+ (version "0.9.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "k5test" version))
+ (sha256
+ (base32
+ "1lqp3jgfngyhaxjgj3n230hn90wsylwilh120yjf62h7b1s02mh8"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-six" ,python-six)
+ ;; `which`, `kadmin.local` binaries called inside library
+ ("which" ,which)
+ ("mit-krb5" ,mit-krb5)))
+ (native-inputs `(("mit-krb5" ,mit-krb5)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-paths
+ (lambda* _
+ (substitute* "k5test/realm.py"
+ (("'kadmin_local'") "'kadmin.local'")))))))
+ (home-page
+ "https://github.com/pythongssapi/k5test")
+ (synopsis
+ "Library for testing Python applications in self-contained Kerberos 5
+environments")
+ (description
+ "k5test is a library for setting up self-contained Kerberos 5
+environments, and running Python unit tests inside those environments.
+It is based on the file of the same name found alongside the MIT Kerberos 5
+unit tests.")
+ (license license:isc)))
+
+(define-public python-forbiddenfruit
+ (package
+ (name "python-forbiddenfruit")
+ (version "0.1.3")
+ (source
+ (origin
+ ;; Source tarball on PyPi lacks Makefile that builds and runs tests
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/clarete/forbiddenfruit")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1fp2xvdqpi910j9r3q68x38phpxbm700gjdi2m2j5gs91xdnyyh2"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (invoke "make" "SKIP_DEPS=1"))))))
+ (native-inputs
+ `(("python-nose" ,python-nose)
+ ("python-coverage" ,python-coverage)))
+ (home-page
+ "https://github.com/clarete/forbiddenfruit")
+ (synopsis "Patch python built-in objects")
+ (description "This project allows Python code to extend built-in types.")
+ (license (list license:gpl3+ license:expat))))
+
+(define-public python-shouldbe
+ (package
+ (name "python-shouldbe")
+ (version "0.1.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "shouldbe" version))
+ (sha256
+ (base32
+ "16zbvjxf71dl4yfbgcr6idyim3mdrfvix1dv8b95p0s9z07372pj"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-forbiddenfruit" ,python-forbiddenfruit)))
+ (native-inputs
+ `(("python-nose" ,python-nose)))
+ (home-page
+ "https://github.com/directxman12/should_be")
+ (synopsis
+ "Python Assertion Helpers inspired by Shouldly")
+ (description
+ "Python Assertion Helpers inspired by Shouldly")
+ (license license:isc)))
+
--
2.20.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [bug#39028] [PATCH] gnu: Add python-asyncssh and dependencies
2020-01-08 9:10 [bug#39028] [PATCH] gnu: Add python-asyncssh and dependencies Lars-Dominik Braun
@ 2020-01-09 14:15 ` zimoun
2020-01-13 7:46 ` [bug#39028] [PATCH 1/7] gnu: Add python-shouldbe Lars-Dominik Braun
2020-04-28 9:44 ` [bug#39028] [PATCH] " Lars-Dominik Braun
2 siblings, 0 replies; 13+ messages in thread
From: zimoun @ 2020-01-09 14:15 UTC (permalink / raw)
To: Lars-Dominik Braun; +Cc: 39028
Hi Lars-Dominik,
Thank you for this patch.
Usually, several packages are added with a series: one new package in
one patch. Could you split this big patch into 6 patches? Or explain
why it is a big one.
Thank you in advance.
All the best,
simon
^ permalink raw reply [flat|nested] 13+ messages in thread
* [bug#39028] [PATCH 1/7] gnu: Add python-shouldbe
2020-01-08 9:10 [bug#39028] [PATCH] gnu: Add python-asyncssh and dependencies Lars-Dominik Braun
2020-01-09 14:15 ` zimoun
@ 2020-01-13 7:46 ` Lars-Dominik Braun
2020-01-13 7:46 ` [bug#39028] [PATCH 2/7] gnu: Add python-forbiddenfruit Lars-Dominik Braun
` (5 more replies)
2020-04-28 9:44 ` [bug#39028] [PATCH] " Lars-Dominik Braun
2 siblings, 6 replies; 13+ messages in thread
From: Lars-Dominik Braun @ 2020-01-13 7:46 UTC (permalink / raw)
To: 39028; +Cc: zimon.toutoune
* gnu/packages/python-xyz.scm (python-shouldbe): New variable
---
gnu/packages/python-xyz.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 194d8b8b0c..646d50697c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17117,3 +17117,28 @@ scripts to load entry points more quickly.")
functional combinators. Parser combinators are just higher-order functions
that take parsers as their arguments and return them as result values.")
(license license:expat)))
+
+(define-public python-shouldbe
+ (package
+ (name "python-shouldbe")
+ (version "0.1.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "shouldbe" version))
+ (sha256
+ (base32
+ "16zbvjxf71dl4yfbgcr6idyim3mdrfvix1dv8b95p0s9z07372pj"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-forbiddenfruit" ,python-forbiddenfruit)))
+ (native-inputs
+ `(("python-nose" ,python-nose)))
+ (home-page
+ "https://github.com/directxman12/should_be")
+ (synopsis
+ "Python Assertion Helpers inspired by Shouldly")
+ (description
+ "Python Assertion Helpers inspired by Shouldly")
+ (license license:isc)))
+
--
2.20.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [bug#39028] [PATCH 2/7] gnu: Add python-forbiddenfruit
2020-01-13 7:46 ` [bug#39028] [PATCH 1/7] gnu: Add python-shouldbe Lars-Dominik Braun
@ 2020-01-13 7:46 ` Lars-Dominik Braun
2020-01-13 7:46 ` [bug#39028] [PATCH 3/7] gnu: Add python-k5test Lars-Dominik Braun
` (4 subsequent siblings)
5 siblings, 0 replies; 13+ messages in thread
From: Lars-Dominik Braun @ 2020-01-13 7:46 UTC (permalink / raw)
To: 39028; +Cc: zimon.toutoune
* gnu/packages/python-xyz.scm (python-forbiddenfruit): New variable
---
gnu/packages/python-xyz.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 646d50697c..e9d9c372e7 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17142,3 +17142,32 @@ that take parsers as their arguments and return them as result values.")
"Python Assertion Helpers inspired by Shouldly")
(license license:isc)))
+(define-public python-forbiddenfruit
+ (package
+ (name "python-forbiddenfruit")
+ (version "0.1.3")
+ (source
+ (origin
+ ;; Source tarball on PyPi lacks Makefile that builds and runs tests
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/clarete/forbiddenfruit")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1fp2xvdqpi910j9r3q68x38phpxbm700gjdi2m2j5gs91xdnyyh2"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (invoke "make" "SKIP_DEPS=1"))))))
+ (native-inputs
+ `(("python-nose" ,python-nose)
+ ("python-coverage" ,python-coverage)))
+ (home-page
+ "https://github.com/clarete/forbiddenfruit")
+ (synopsis "Patch python built-in objects")
+ (description "This project allows Python code to extend built-in types.")
+ (license (list license:gpl3+ license:expat))))
--
2.20.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [bug#39028] [PATCH 3/7] gnu: Add python-k5test
2020-01-13 7:46 ` [bug#39028] [PATCH 1/7] gnu: Add python-shouldbe Lars-Dominik Braun
2020-01-13 7:46 ` [bug#39028] [PATCH 2/7] gnu: Add python-forbiddenfruit Lars-Dominik Braun
@ 2020-01-13 7:46 ` Lars-Dominik Braun
2020-01-13 7:46 ` [bug#39028] [PATCH 4/7] gnu: Add python-gssapi Lars-Dominik Braun
` (3 subsequent siblings)
5 siblings, 0 replies; 13+ messages in thread
From: Lars-Dominik Braun @ 2020-01-13 7:46 UTC (permalink / raw)
To: 39028; +Cc: zimon.toutoune
* gnu/packages/python-xyz.scm (python-k5test): New variable
---
gnu/packages/python-xyz.scm | 39 +++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e9d9c372e7..846113aceb 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -112,6 +112,7 @@
#:use-module (gnu packages icu4c)
#:use-module (gnu packages image)
#:use-module (gnu packages imagemagick)
+ #:use-module (gnu packages kerberos)
#:use-module (gnu packages libevent)
#:use-module (gnu packages libffi)
#:use-module (gnu packages linux)
@@ -17171,3 +17172,41 @@ that take parsers as their arguments and return them as result values.")
(synopsis "Patch python built-in objects")
(description "This project allows Python code to extend built-in types.")
(license (list license:gpl3+ license:expat))))
+
+(define-public python-k5test
+ (package
+ (name "python-k5test")
+ (version "0.9.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "k5test" version))
+ (sha256
+ (base32
+ "1lqp3jgfngyhaxjgj3n230hn90wsylwilh120yjf62h7b1s02mh8"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-six" ,python-six)
+ ;; `which`, `kadmin.local` binaries called inside library
+ ("which" ,which)
+ ("mit-krb5" ,mit-krb5)))
+ (native-inputs `(("mit-krb5" ,mit-krb5)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-paths
+ (lambda* _
+ (substitute* "k5test/realm.py"
+ (("'kadmin_local'") "'kadmin.local'")))))))
+ (home-page
+ "https://github.com/pythongssapi/k5test")
+ (synopsis
+ "Library for testing Python applications in self-contained Kerberos 5
+environments")
+ (description
+ "k5test is a library for setting up self-contained Kerberos 5
+environments, and running Python unit tests inside those environments.
+It is based on the file of the same name found alongside the MIT Kerberos 5
+unit tests.")
+ (license license:isc)))
+
--
2.20.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [bug#39028] [PATCH 4/7] gnu: Add python-gssapi
2020-01-13 7:46 ` [bug#39028] [PATCH 1/7] gnu: Add python-shouldbe Lars-Dominik Braun
2020-01-13 7:46 ` [bug#39028] [PATCH 2/7] gnu: Add python-forbiddenfruit Lars-Dominik Braun
2020-01-13 7:46 ` [bug#39028] [PATCH 3/7] gnu: Add python-k5test Lars-Dominik Braun
@ 2020-01-13 7:46 ` Lars-Dominik Braun
2020-01-13 7:46 ` [bug#39028] [PATCH 5/7] gnu: python-cryptography: Update to 2.8 Lars-Dominik Braun
` (2 subsequent siblings)
5 siblings, 0 replies; 13+ messages in thread
From: Lars-Dominik Braun @ 2020-01-13 7:46 UTC (permalink / raw)
To: 39028; +Cc: zimon.toutoune
* gnu/packages/python-xyz.scm (python-gssapi): New variable
---
gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 846113aceb..e12f15fac8 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17210,3 +17210,33 @@ It is based on the file of the same name found alongside the MIT Kerberos 5
unit tests.")
(license license:isc)))
+(define-public python-gssapi
+ (package
+ (name "python-gssapi")
+ (version "1.6.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "gssapi" version))
+ (sha256
+ (base32
+ "1gymg4asvwrz7y13qpwp2s5g8qwq179d72gkj09q6bfcgs82l5wr"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-decorator" ,python-decorator)
+ ("python-six" ,python-six)))
+ (inputs
+ `(("mit-krb5" ,mit-krb5)))
+ ;; for tests
+ (native-inputs
+ `(("python-shouldbe" ,python-shouldbe)
+ ("python-parameterized" ,python-parameterized)
+ ("python-k5test" ,python-k5test)
+ ("python-nose" ,python-nose)))
+ (home-page
+ "https://github.com/pythongssapi/python-gssapi")
+ (synopsis "Python GSSAPI Wrapper")
+ (description "Python-GSSAPI provides both low-level and high level wrappers
+around the GSSAPI C libraries. While it focuses on the Kerberos mechanism, it
+should also be useable with other GSSAPI mechanisms.")
+ (license license:isc)))
--
2.20.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [bug#39028] [PATCH 5/7] gnu: python-cryptography: Update to 2.8
2020-01-13 7:46 ` [bug#39028] [PATCH 1/7] gnu: Add python-shouldbe Lars-Dominik Braun
` (2 preceding siblings ...)
2020-01-13 7:46 ` [bug#39028] [PATCH 4/7] gnu: Add python-gssapi Lars-Dominik Braun
@ 2020-01-13 7:46 ` Lars-Dominik Braun
[not found] ` <87k15mi8ax.fsf@member.fsf.org>
2020-01-13 7:46 ` [bug#39028] [PATCH 6/7] gnu: python-pyopenssl: Disable failing tests Lars-Dominik Braun
2020-01-13 7:46 ` [bug#39028] [PATCH 7/7] gnu: Add python-asyncssh Lars-Dominik Braun
5 siblings, 1 reply; 13+ messages in thread
From: Lars-Dominik Braun @ 2020-01-13 7:46 UTC (permalink / raw)
To: 39028; +Cc: zimon.toutoune
* gnu/packages/python-crypto.scm (python-cryptography): Update to 2.8
(python-cryptography-vectors): Update to 2.8
---
gnu/packages/python-crypto.scm | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 43a0d95ddc..0322e1691e 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -361,14 +361,14 @@ is used by the Requests library to verify HTTPS requests.")
(define-public python-cryptography-vectors
(package
(name "python-cryptography-vectors")
- (version "2.7")
+ (version "2.8")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cryptography_vectors" version))
(sha256
(base32
- "1g38zw90510azyfrj6mxbslx2gp9yrnv5dac0w2819k9ssdznbgi"))))
+ "05pi3shqz0fgvy0d5yazza67bbnam8fkrx2ayrrclgkaqms23lvc"))))
(build-system python-build-system)
(home-page "https://github.com/pyca/cryptography")
(synopsis "Test vectors for the cryptography package")
@@ -383,14 +383,14 @@ is used by the Requests library to verify HTTPS requests.")
(define-public python-cryptography
(package
(name "python-cryptography")
- (version "2.7")
+ (version "2.8")
(source
(origin
(method url-fetch)
(uri (pypi-uri "cryptography" version))
(sha256
(base32
- "1inlnr36kl36551c9rcad99jmhk81v33by3glkadwdcgmi17fd76"))))
+ "0l8nhw14npknncxdnp7n4hpmjyscly6g7fbivyxkjwvlv071zniw"))))
(build-system python-build-system)
(inputs
`(("openssl" ,openssl)))
--
2.20.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [bug#39028] [PATCH 6/7] gnu: python-pyopenssl: Disable failing tests
2020-01-13 7:46 ` [bug#39028] [PATCH 1/7] gnu: Add python-shouldbe Lars-Dominik Braun
` (3 preceding siblings ...)
2020-01-13 7:46 ` [bug#39028] [PATCH 5/7] gnu: python-cryptography: Update to 2.8 Lars-Dominik Braun
@ 2020-01-13 7:46 ` Lars-Dominik Braun
2020-01-13 7:46 ` [bug#39028] [PATCH 7/7] gnu: Add python-asyncssh Lars-Dominik Braun
5 siblings, 0 replies; 13+ messages in thread
From: Lars-Dominik Braun @ 2020-01-13 7:46 UTC (permalink / raw)
To: 39028; +Cc: zimon.toutoune
* gnu/packages/python-crypto.scm (python-pyopenssl)[arguments]: Disable failing
tests
---
gnu/packages/python-crypto.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 0322e1691e..eb5be5e794 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -456,7 +456,11 @@ message digests and key derivation functions.")
"not test_fallback_default_verify_paths "
;; This test attempts to make a connection to
;; an external web service.
- "and not test_set_default_verify_paths")))))))
+ "and not test_set_default_verify_paths "
+ ;; These fail for unknown reasons.
+ "and not test_add_extra_chain_cert "
+ "and not test_use_certificate_chain_file_bytes "
+ "and not test_use_certificate_chain_file_unicode")))))))
(propagated-inputs
`(("python-cryptography" ,python-cryptography)
("python-six" ,python-six)))
--
2.20.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [bug#39028] [PATCH 7/7] gnu: Add python-asyncssh
2020-01-13 7:46 ` [bug#39028] [PATCH 1/7] gnu: Add python-shouldbe Lars-Dominik Braun
` (4 preceding siblings ...)
2020-01-13 7:46 ` [bug#39028] [PATCH 6/7] gnu: python-pyopenssl: Disable failing tests Lars-Dominik Braun
@ 2020-01-13 7:46 ` Lars-Dominik Braun
5 siblings, 0 replies; 13+ messages in thread
From: Lars-Dominik Braun @ 2020-01-13 7:46 UTC (permalink / raw)
To: 39028; +Cc: zimon.toutoune
* gnu/packages/python-xyz.scm (python-asyncssh): New variable
---
gnu/packages/python-xyz.scm | 40 +++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e12f15fac8..9736bfa3fa 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17240,3 +17240,43 @@ unit tests.")
around the GSSAPI C libraries. While it focuses on the Kerberos mechanism, it
should also be useable with other GSSAPI mechanisms.")
(license license:isc)))
+
+(define-public python-asyncssh
+ (package
+ (name "python-asyncssh")
+ (version "2.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "asyncssh" version))
+ (sha256
+ (base32
+ "101kxyydrps9lc716vjs0nrvzfjp8644iir1xm19pl0ma73b9l0r"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-cryptography" ,python-cryptography)
+ ("python-pyopenssl" ,python-pyopenssl)
+ ("python-gssapi" ,python-gssapi)
+ ("python-bcrypt" ,python-bcrypt)))
+ ;; required for test suite
+ (native-inputs
+ `(("openssh" ,openssh)
+ ("openssl" ,openssl)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'disable-tests
+ (lambda* _
+ (substitute* "tests/test_agent.py"
+ ;; Test fails for unknown reason
+ (("async def test_confirm")
+ "@unittest.skip('disabled by guix')\n async def test_confirm")))))))
+ (home-page "https://asyncssh.readthedocs.io/")
+ (synopsis
+ "Asynchronous SSHv2 client and server library")
+ (description
+ "AsyncSSH is a Python package which provides an asynchronous client and
+server implementation of the SSHv2 protocol on top of the Python 3.6+ asyncio
+framework")
+ (license license:epl2.0)))
+
--
2.20.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [bug#39028] [PATCH 5/7] gnu: python-cryptography: Update to 2.8
[not found] ` <87k15mi8ax.fsf@member.fsf.org>
@ 2020-01-21 10:08 ` Lars-Dominik Braun
0 siblings, 0 replies; 13+ messages in thread
From: Lars-Dominik Braun @ 2020-01-21 10:08 UTC (permalink / raw)
To: 宋文武; +Cc: guix-devel, 39028, zimon.toutoune
Hi,
> Hello Braun, I have pushed the previous 4 patches into master, thank you!
thanks.
> This is not a small change for me, as 'guix refresh -l python-cryptography' says:
> Building the following 167 packages would ensure 367 dependent packages are rebuilt...
True, I did not check that, my bad. Would it be acceptable to package an older
version of asyncssh compatible with python-cryptography 2.7?
> And I'm not sure about disable tests in python-pyopenssl (in the next
> patch), maybe we should update it to 19.1.0.
Nope, does not fix these three testcases for me.
Lars
^ permalink raw reply [flat|nested] 13+ messages in thread
* [bug#39028] [PATCH] gnu: Add python-asyncssh
2020-01-08 9:10 [bug#39028] [PATCH] gnu: Add python-asyncssh and dependencies Lars-Dominik Braun
2020-01-09 14:15 ` zimoun
2020-01-13 7:46 ` [bug#39028] [PATCH 1/7] gnu: Add python-shouldbe Lars-Dominik Braun
@ 2020-04-28 9:44 ` Lars-Dominik Braun
2020-07-27 8:38 ` Lars-Dominik Braun
2 siblings, 1 reply; 13+ messages in thread
From: Lars-Dominik Braun @ 2020-04-28 9:44 UTC (permalink / raw)
To: 39028
[-- Attachment #1.1: Type: text/plain, Size: 159 bytes --]
Hi,
here’s an updated patch that adds python-asyncssh with a patch that restores
python-cryptography-2.7 compatibility until 2.8 hits master.
Lars
[-- Attachment #1.2: 0001-gnu-Add-python-asyncssh.patch --]
[-- Type: text/x-diff, Size: 4922 bytes --]
From 49f0634e2e409e4c38a47aafc5113787dd14ea06 Mon Sep 17 00:00:00 2001
From: Lars-Dominik Braun <ldb@leibniz-psychology.org>
Date: Tue, 28 Apr 2020 11:41:08 +0200
Subject: [PATCH] gnu: Add python-asyncssh
* gnu/packages/python-xyz.scm (python-asyncssh): New variable
* gnu/local.mk (dist_patch_DATA): Add new patch
* gnu/packages/patches/python-asyncssh-2.2.1-no-crypto2.8.patch: New file
---
gnu/local.mk | 1 +
.../python-asyncssh-2.2.1-no-crypto2.8.patch | 37 ++++++++++++++++
gnu/packages/python-xyz.scm | 43 +++++++++++++++++++
3 files changed, 81 insertions(+)
create mode 100644 gnu/packages/patches/python-asyncssh-2.2.1-no-crypto2.8.patch
diff --git a/gnu/local.mk b/gnu/local.mk
index 9f212434a9..f3cc5fd116 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1360,6 +1360,7 @@ dist_patch_DATA = \
%D%/packages/patches/python-CVE-2018-14647.patch \
%D%/packages/patches/python-aiohttp-3.6.2-no-warning-fail.patch \
%D%/packages/patches/python-alembic-exceptions-cause.patch \
+ %D%/packages/patches/python-asyncssh-2.2.1-no-crypto2.8.patch \
%D%/packages/patches/python-axolotl-AES-fix.patch \
%D%/packages/patches/python-cairocffi-dlopen-path.patch \
%D%/packages/patches/python-cffi-x87-stack-clean.patch \
diff --git a/gnu/packages/patches/python-asyncssh-2.2.1-no-crypto2.8.patch b/gnu/packages/patches/python-asyncssh-2.2.1-no-crypto2.8.patch
new file mode 100644
index 0000000000..bf41ec865c
--- /dev/null
+++ b/gnu/packages/patches/python-asyncssh-2.2.1-no-crypto2.8.patch
@@ -0,0 +1,37 @@
+Reverted commit
+https://github.com/ronf/asyncssh/commit/386432c9b698beb23ccb88b69f4023560b76750f
+
+--- b/asyncssh/crypto/chacha.py
++++ a/asyncssh/crypto/chacha.py
+@@ -51,13 +51,18 @@
+ def poly1305(key, data, nonce):
+ """Compute a Poly1305 tag for a block of data"""
+
++ poly = Poly1305(poly1305_key(key, nonce))
++ poly.update(data)
++ return poly.finalize()
+- return Poly1305.generate_tag(poly1305_key(key, nonce), data)
+
+ def poly1305_verify(key, data, nonce, tag):
+ """Verify a Poly1305 tag for a block of data"""
+
++ poly = Poly1305(poly1305_key(key, nonce))
++
+ try:
++ poly.update(data)
++ poly.verify(tag)
+- Poly1305.verify_tag(poly1305_key(key, nonce), data, tag)
+ return True
+ except InvalidSignature:
+ return False
+--- b/setup.py
++++ a/setup.py
+@@ -52,7 +52,7 @@
+ long_description = long_description,
+ platforms = 'Any',
+ python_requires = '>= 3.6',
++ install_requires = ['cryptography >= 2.7'],
+- install_requires = ['cryptography >= 2.8'],
+ extras_require = {
+ 'bcrypt': ['bcrypt >= 3.1.3'],
+ 'gssapi': ['gssapi >= 1.2.0'],
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 31cafd47d1..6f17f4113e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19588,3 +19588,46 @@ workspace...")
dependencies. It implements the @uref{http://opensoundcontrol.org/spec-1_0,
Open Sound Control 1.0} specification.")
(license license:unlicense)))
+
+(define-public python-asyncssh
+ (package
+ (name "python-asyncssh")
+ (version "2.2.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "asyncssh" version))
+ (sha256
+ (base32
+ "13ik6gc8qh8v2dkhfcv2rrip19bcg4kykfi37464l43s76mg3yds"))
+ ;; revert changes that require python-cryptography 2.8, no functional
+ ;; differences
+ (patches (search-patches "python-asyncssh-2.2.1-no-crypto2.8.patch"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-cryptography" ,python-cryptography)
+ ("python-pyopenssl" ,python-pyopenssl)
+ ("python-gssapi" ,python-gssapi)
+ ("python-bcrypt" ,python-bcrypt)))
+ ;; required for test suite
+ (native-inputs
+ `(("openssh" ,openssh)
+ ("openssl" ,openssl)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'disable-tests
+ (lambda* _
+ (substitute* "tests/test_agent.py"
+ ;; Test fails for unknown reason
+ (("async def test_confirm")
+ "@unittest.skip('disabled by guix')\n async def test_confirm")))))))
+ (home-page "https://asyncssh.readthedocs.io/")
+ (synopsis
+ "Asynchronous SSHv2 client and server library")
+ (description
+ "AsyncSSH is a Python package which provides an asynchronous client and
+server implementation of the SSHv2 protocol on top of the Python 3.6+ asyncio
+framework")
+ (license license:epl2.0)))
+
--
2.20.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [bug#39028] [PATCH] gnu: Add python-asyncssh
2020-04-28 9:44 ` [bug#39028] [PATCH] " Lars-Dominik Braun
@ 2020-07-27 8:38 ` Lars-Dominik Braun
2020-10-31 21:38 ` bug#39028: " Christopher Baines
0 siblings, 1 reply; 13+ messages in thread
From: Lars-Dominik Braun @ 2020-07-27 8:38 UTC (permalink / raw)
To: 39028
[-- Attachment #1.1: Type: text/plain, Size: 228 bytes --]
Hi again,
since master now has python-cryptography==2.9, we can safely add
python-asyncssh without any custom patches. The attached patches first update
python-gssapi (a dependency) and then add python-asyncssh.
Cheers,
Lars
[-- Attachment #1.2: 0001-gnu-python-gssapi-Update-to-1.6.9.patch --]
[-- Type: text/x-diff, Size: 2280 bytes --]
From 5701cf477487e5e43153f6d889869a33addae5e2 Mon Sep 17 00:00:00 2001
From: Lars-Dominik Braun <ldb@leibniz-psychology.org>
Date: Mon, 27 Jul 2020 10:32:24 +0200
Subject: [PATCH 1/2] gnu: python-gssapi: Update to 1.6.9.
* gnu/packages/python-xyz.scm (python-gssapi)[version]: Update to 1.6.9.
[arguments]: Disable failing tests.
---
gnu/packages/python-xyz.scm | 24 ++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 3aebff078b..490d35f197 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19611,15 +19611,35 @@ tests.")
(define-public python-gssapi
(package
(name "python-gssapi")
- (version "1.6.5")
+ (version "1.6.9")
(source
(origin
(method url-fetch)
(uri (pypi-uri "gssapi" version))
(sha256
(base32
- "02i5s7998dg5kcr4m0xwamd8vjqk1816xbzldyp68l91f6bynwcr"))))
+ "1fa78pn5jzfbwf3y6mj4fc8sh11wjf1hwh5qv39cdlxb71qsq2hb"))))
(build-system python-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'disable-tests
+ (lambda* _
+ ;; XXX: These test fails for unknown reasons.
+ (substitute* "gssapi/tests/test_raw.py"
+ (("(.+)def (test_acquire_creds_impersonate_name)" all indent
+ fname)
+ (string-append indent "@unittest.skip('disabled by guix')\n"
+ indent "def " fname))
+ (("(.+)def (test_add_cred_impersonate_name)" all indent fname)
+ (string-append indent "@unittest.skip('disabled by guix')\n"
+ indent "def " fname)))
+ (substitute* "gssapi/tests/test_high_level.py"
+ (("import copy" all)
+ (string-append all "\nimport unittest"))
+ (("(.+)def (test_add_with_impersonate)" all indent fname)
+ (string-append indent "@unittest.skip('disabled by guix')\n"
+ indent "def " fname))))))))
(propagated-inputs
`(("python-decorator" ,python-decorator)
("python-six" ,python-six)))
--
2.20.1
[-- Attachment #1.3: 0002-gnu-Add-python-asyncssh.patch --]
[-- Type: text/x-diff, Size: 2279 bytes --]
From 7e30a2e8d122daf5f7e7ba6eee92a69f3ed4f49f Mon Sep 17 00:00:00 2001
From: Lars-Dominik Braun <ldb@leibniz-psychology.org>
Date: Tue, 28 Apr 2020 11:41:08 +0200
Subject: [PATCH 2/2] gnu: Add python-asyncssh.
* gnu/packages/python-xyz.scm (python-asyncssh): New variable.
---
gnu/packages/python-xyz.scm | 40 +++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 490d35f197..f2d158773e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -21059,3 +21059,43 @@ and have a maximum lifetime built-in.")
"This package contains a small collection of test tool plugins for
@code{nose2} and @code{flake8}.")
(license license:asl2.0)))
+
+(define-public python-asyncssh
+ (package
+ (name "python-asyncssh")
+ (version "2.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "asyncssh" version))
+ (sha256
+ (base32
+ "0pi6npmsgx7l9r1qrfvg8mxx3i23ipff492xz4yhrw13f56a7ga4"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-cryptography" ,python-cryptography)
+ ("python-pyopenssl" ,python-pyopenssl)
+ ("python-gssapi" ,python-gssapi)
+ ("python-bcrypt" ,python-bcrypt)))
+ ;; required for test suite
+ (native-inputs
+ `(("openssh" ,openssh)
+ ("openssl" ,openssl)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'disable-tests
+ (lambda* _
+ (substitute* "tests/test_agent.py"
+ ;; Test fails for unknown reason
+ (("(.+)async def test_confirm" all indent)
+ (string-append indent "@unittest.skip('disabled by guix')\n"
+ indent "async def test_confirm"))))))))
+ (home-page "https://asyncssh.readthedocs.io/")
+ (synopsis
+ "Asynchronous SSHv2 client and server library")
+ (description
+ "AsyncSSH is a Python package which provides an asynchronous client and
+server implementation of the SSHv2 protocol on top of the Python 3.6+ asyncio
+framework")
+ (license license:epl2.0)))
--
2.20.1
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply related [flat|nested] 13+ messages in thread
* bug#39028: [PATCH] gnu: Add python-asyncssh
2020-07-27 8:38 ` Lars-Dominik Braun
@ 2020-10-31 21:38 ` Christopher Baines
0 siblings, 0 replies; 13+ messages in thread
From: Christopher Baines @ 2020-10-31 21:38 UTC (permalink / raw)
To: Lars-Dominik Braun; +Cc: 39028-done
[-- Attachment #1: Type: text/plain, Size: 445 bytes --]
Lars-Dominik Braun <ldb@leibniz-psychology.org> writes:
> since master now has python-cryptography==2.9, we can safely add
> python-asyncssh without any custom patches. The attached patches first update
> python-gssapi (a dependency) and then add python-asyncssh.
Hi!
This looks good to me, I tweaked the module (ssh seemed more
appropriate) and indentation, and pushed to master as
48dec2e04efdc764e16828fb7837ca58064f3cbe.
Thanks,
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2020-10-31 21:39 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-08 9:10 [bug#39028] [PATCH] gnu: Add python-asyncssh and dependencies Lars-Dominik Braun
2020-01-09 14:15 ` zimoun
2020-01-13 7:46 ` [bug#39028] [PATCH 1/7] gnu: Add python-shouldbe Lars-Dominik Braun
2020-01-13 7:46 ` [bug#39028] [PATCH 2/7] gnu: Add python-forbiddenfruit Lars-Dominik Braun
2020-01-13 7:46 ` [bug#39028] [PATCH 3/7] gnu: Add python-k5test Lars-Dominik Braun
2020-01-13 7:46 ` [bug#39028] [PATCH 4/7] gnu: Add python-gssapi Lars-Dominik Braun
2020-01-13 7:46 ` [bug#39028] [PATCH 5/7] gnu: python-cryptography: Update to 2.8 Lars-Dominik Braun
[not found] ` <87k15mi8ax.fsf@member.fsf.org>
2020-01-21 10:08 ` Lars-Dominik Braun
2020-01-13 7:46 ` [bug#39028] [PATCH 6/7] gnu: python-pyopenssl: Disable failing tests Lars-Dominik Braun
2020-01-13 7:46 ` [bug#39028] [PATCH 7/7] gnu: Add python-asyncssh Lars-Dominik Braun
2020-04-28 9:44 ` [bug#39028] [PATCH] " Lars-Dominik Braun
2020-07-27 8:38 ` Lars-Dominik Braun
2020-10-31 21:38 ` bug#39028: " Christopher Baines
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).