* [bug#63486] [PATCH 1/3] gnu: python-txtorcon: Fix failing build.
2023-05-13 16:56 [bug#63486] [PATCH 0/3] gnu: python-txtorcon: Fix build, style, update Juliana Sims
@ 2023-05-13 16:59 ` Juliana Sims
2023-05-13 16:59 ` [bug#63486] [PATCH 2/3] gnu: python-txtorcon: Run guix style Juliana Sims
` (3 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Juliana Sims @ 2023-05-13 16:59 UTC (permalink / raw)
To: 63486; +Cc: Juliana Sims
* gnu/packages/python-crypto.scm (python-txtorcon): Fix failing build.
---
gnu/packages/python-crypto.scm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index b1d94e85b8..ab2312a1e2 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -1253,7 +1253,12 @@ (define-public python-txtorcon
(uri (pypi-uri "txtorcon" version))
(sha256
(base32
- "0fxzhsc62bhmr730vj9pzallmw56gz6iykvl28a5agrycm0bfc9p"))))
+ "0fxzhsc62bhmr730vj9pzallmw56gz6iykvl28a5agrycm0bfc9p"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(substitute* "txtorcon/controller.py"
+ (("from collections import Sequence")
+ "from collections.abc import Sequence")))))
(build-system python-build-system)
(arguments
;; The tests fail immediately due to a missing file. Reported upstream:
--
2.40.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#63486] [PATCH 2/3] gnu: python-txtorcon: Run guix style.
2023-05-13 16:56 [bug#63486] [PATCH 0/3] gnu: python-txtorcon: Fix build, style, update Juliana Sims
2023-05-13 16:59 ` [bug#63486] [PATCH 1/3] gnu: python-txtorcon: Fix failing build Juliana Sims
@ 2023-05-13 16:59 ` Juliana Sims
2023-05-13 16:59 ` [bug#63486] [PATCH 3/3] gnu: python-txtorcon: Update to 23.0.0 Juliana Sims
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Juliana Sims @ 2023-05-13 16:59 UTC (permalink / raw)
To: 63486; +Cc: Juliana Sims
* gnu/packages/python-crypto.scm (python-txtorcon): Run guix style.
---
gnu/packages/python-crypto.scm | 43 ++++++++++++++++------------------
1 file changed, 20 insertions(+), 23 deletions(-)
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index ab2312a1e2..8e94d54336 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -1247,31 +1247,28 @@ (define-public python-txtorcon
(package
(name "python-txtorcon")
(version "19.0.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "txtorcon" version))
- (sha256
- (base32
- "0fxzhsc62bhmr730vj9pzallmw56gz6iykvl28a5agrycm0bfc9p"))
- (modules '((guix build utils)))
- (snippet
- #~(substitute* "txtorcon/controller.py"
- (("from collections import Sequence")
- "from collections.abc import Sequence")))))
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "txtorcon" version))
+ (sha256
+ (base32
+ "0fxzhsc62bhmr730vj9pzallmw56gz6iykvl28a5agrycm0bfc9p"))
+ (modules '((guix build utils)))
+ (snippet #~(substitute* "txtorcon/controller.py"
+ (("from collections import Sequence")
+ "from collections.abc import Sequence")))))
(build-system python-build-system)
(arguments
- ;; The tests fail immediately due to a missing file. Reported upstream:
- ;; <https://github.com/meejah/txtorcon/issues/330>
- `(#:tests? #f))
- (propagated-inputs
- (list python-automat
- python-idna
- python-incremental
- python-pyopenssl
- python-service-identity
- python-twisted
- python-zope-interface))
+ ;; The tests fail immediately due to a missing file. Reported upstream:
+ ;; <https://github.com/meejah/txtorcon/issues/330>
+ (list #:tests? #f))
+ (propagated-inputs (list python-automat
+ python-idna
+ python-incremental
+ python-pyopenssl
+ python-service-identity
+ python-twisted
+ python-zope-interface))
(home-page "https://github.com/meejah/txtorcon")
(synopsis "Twisted-based Tor controller client")
(description "This package provides a Twisted-based Tor controller client,
--
2.40.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#63486] [PATCH 3/3] gnu: python-txtorcon: Update to 23.0.0.
2023-05-13 16:56 [bug#63486] [PATCH 0/3] gnu: python-txtorcon: Fix build, style, update Juliana Sims
2023-05-13 16:59 ` [bug#63486] [PATCH 1/3] gnu: python-txtorcon: Fix failing build Juliana Sims
2023-05-13 16:59 ` [bug#63486] [PATCH 2/3] gnu: python-txtorcon: Run guix style Juliana Sims
@ 2023-05-13 16:59 ` Juliana Sims
2023-05-13 17:31 ` [bug#63486] [PATCH v2 1/3] gnu: python-txtorcon: Fix failing build Juliana Sims
2023-05-22 14:54 ` bug#63486: [PATCH 0/3] gnu: python-txtorcon: Fix build, style, update Ludovic Courtès
4 siblings, 0 replies; 8+ messages in thread
From: Juliana Sims @ 2023-05-13 16:59 UTC (permalink / raw)
To: 63486; +Cc: Juliana Sims
* gnu/packages/python-crypto.scm (python-txtorcon): Update to 23.0.0.
---
gnu/packages/python-crypto.scm | 30 +++++++++++++++++++++---------
1 file changed, 21 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 8e94d54336..712590ef4f 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -1246,22 +1246,33 @@ (define-public python-spake2
(define-public python-txtorcon
(package
(name "python-txtorcon")
- (version "19.0.0")
+ (version "23.0.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "txtorcon" version))
(sha256
(base32
- "0fxzhsc62bhmr730vj9pzallmw56gz6iykvl28a5agrycm0bfc9p"))
- (modules '((guix build utils)))
- (snippet #~(substitute* "txtorcon/controller.py"
- (("from collections import Sequence")
- "from collections.abc import Sequence")))))
+ "09a3k4g90pvs0q006ighka7xic39nnnk9bfrka23g4b8cynzy982"))))
(build-system python-build-system)
(arguments
- ;; The tests fail immediately due to a missing file. Reported upstream:
- ;; <https://github.com/meejah/txtorcon/issues/330>
- (list #:tests? #f))
+ (list #:phases #~(modify-phases %standard-phases
+ (add-before 'check 'disable-failing-tests
+ (lambda _
+ ;; These tests fail
+ (substitute* "test/test_router.py"
+ (("\\W+def test_countrycode\\(self\\):" all)
+ (string-append
+ " from unittest import skip as _skip\n"
+ " @_skip('Fails during Guix build')\n" all))
+ (("\\W+def test_get_location_private\\(self\\):"
+ all)
+ (string-append
+ " @_skip('Fails during Guix build')\n" all)))
+ ;; This test errors out
+ (substitute* "test/test_util.py"
+ (("\\W+def test_real_addr\\(self\\):" all)
+ (string-append
+ " @_skip('Fails during Guix build')\n" all))))))))
(propagated-inputs (list python-automat
python-idna
python-incremental
@@ -1269,6 +1280,7 @@ (define-public python-txtorcon
python-service-identity
python-twisted
python-zope-interface))
+ (native-inputs (list python-mock))
(home-page "https://github.com/meejah/txtorcon")
(synopsis "Twisted-based Tor controller client")
(description "This package provides a Twisted-based Tor controller client,
--
2.40.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#63486] [PATCH v2 1/3] gnu: python-txtorcon: Fix failing build.
2023-05-13 16:56 [bug#63486] [PATCH 0/3] gnu: python-txtorcon: Fix build, style, update Juliana Sims
` (2 preceding siblings ...)
2023-05-13 16:59 ` [bug#63486] [PATCH 3/3] gnu: python-txtorcon: Update to 23.0.0 Juliana Sims
@ 2023-05-13 17:31 ` Juliana Sims
2023-05-13 17:31 ` [bug#63486] [PATCH v2 2/3] gnu: python-txtorcon: Run guix style Juliana Sims
2023-05-13 17:31 ` [bug#63486] [PATCH v2 3/3] gnu: python-txtorcon: Update to 23.0.0 Juliana Sims
2023-05-22 14:54 ` bug#63486: [PATCH 0/3] gnu: python-txtorcon: Fix build, style, update Ludovic Courtès
4 siblings, 2 replies; 8+ messages in thread
From: Juliana Sims @ 2023-05-13 17:31 UTC (permalink / raw)
To: 63486; +Cc: Juliana Sims
Oops, I forgot to add a copyright line - this version fixes that.
* gnu/packages/python-crypto.scm (python-txtorcon): Fix failing build.
---
gnu/packages/python-crypto.scm | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index b1d94e85b8..be3ab5d0be 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -27,6 +27,7 @@
;;; Copyright © 2021, 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
;;; Copyright © 2022 Antero Mejr <antero@mailbox.org>
+;;; Copyright © 2023 Juliana Sims <juli@incana.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -1253,7 +1254,12 @@ (define-public python-txtorcon
(uri (pypi-uri "txtorcon" version))
(sha256
(base32
- "0fxzhsc62bhmr730vj9pzallmw56gz6iykvl28a5agrycm0bfc9p"))))
+ "0fxzhsc62bhmr730vj9pzallmw56gz6iykvl28a5agrycm0bfc9p"))
+ (modules '((guix build utils)))
+ (snippet
+ #~(substitute* "txtorcon/controller.py"
+ (("from collections import Sequence")
+ "from collections.abc import Sequence")))))
(build-system python-build-system)
(arguments
;; The tests fail immediately due to a missing file. Reported upstream:
base-commit: ed1e7920393c9ae5b2ae31fc46bae88136239b13
--
2.40.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#63486] [PATCH v2 2/3] gnu: python-txtorcon: Run guix style.
2023-05-13 17:31 ` [bug#63486] [PATCH v2 1/3] gnu: python-txtorcon: Fix failing build Juliana Sims
@ 2023-05-13 17:31 ` Juliana Sims
2023-05-13 17:31 ` [bug#63486] [PATCH v2 3/3] gnu: python-txtorcon: Update to 23.0.0 Juliana Sims
1 sibling, 0 replies; 8+ messages in thread
From: Juliana Sims @ 2023-05-13 17:31 UTC (permalink / raw)
To: 63486; +Cc: Juliana Sims
* gnu/packages/python-crypto.scm (python-txtorcon): Run guix style.
---
gnu/packages/python-crypto.scm | 43 ++++++++++++++++------------------
1 file changed, 20 insertions(+), 23 deletions(-)
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index be3ab5d0be..6a7611ccdb 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -1248,31 +1248,28 @@ (define-public python-txtorcon
(package
(name "python-txtorcon")
(version "19.0.0")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "txtorcon" version))
- (sha256
- (base32
- "0fxzhsc62bhmr730vj9pzallmw56gz6iykvl28a5agrycm0bfc9p"))
- (modules '((guix build utils)))
- (snippet
- #~(substitute* "txtorcon/controller.py"
- (("from collections import Sequence")
- "from collections.abc import Sequence")))))
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "txtorcon" version))
+ (sha256
+ (base32
+ "0fxzhsc62bhmr730vj9pzallmw56gz6iykvl28a5agrycm0bfc9p"))
+ (modules '((guix build utils)))
+ (snippet #~(substitute* "txtorcon/controller.py"
+ (("from collections import Sequence")
+ "from collections.abc import Sequence")))))
(build-system python-build-system)
(arguments
- ;; The tests fail immediately due to a missing file. Reported upstream:
- ;; <https://github.com/meejah/txtorcon/issues/330>
- `(#:tests? #f))
- (propagated-inputs
- (list python-automat
- python-idna
- python-incremental
- python-pyopenssl
- python-service-identity
- python-twisted
- python-zope-interface))
+ ;; The tests fail immediately due to a missing file. Reported upstream:
+ ;; <https://github.com/meejah/txtorcon/issues/330>
+ (list #:tests? #f))
+ (propagated-inputs (list python-automat
+ python-idna
+ python-incremental
+ python-pyopenssl
+ python-service-identity
+ python-twisted
+ python-zope-interface))
(home-page "https://github.com/meejah/txtorcon")
(synopsis "Twisted-based Tor controller client")
(description "This package provides a Twisted-based Tor controller client,
--
2.40.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#63486] [PATCH v2 3/3] gnu: python-txtorcon: Update to 23.0.0.
2023-05-13 17:31 ` [bug#63486] [PATCH v2 1/3] gnu: python-txtorcon: Fix failing build Juliana Sims
2023-05-13 17:31 ` [bug#63486] [PATCH v2 2/3] gnu: python-txtorcon: Run guix style Juliana Sims
@ 2023-05-13 17:31 ` Juliana Sims
1 sibling, 0 replies; 8+ messages in thread
From: Juliana Sims @ 2023-05-13 17:31 UTC (permalink / raw)
To: 63486; +Cc: Juliana Sims
* gnu/packages/python-crypto.scm (python-txtorcon): Update to 23.0.0.
---
gnu/packages/python-crypto.scm | 30 +++++++++++++++++++++---------
1 file changed, 21 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 6a7611ccdb..7b2ac2db6e 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -1247,22 +1247,33 @@ (define-public python-spake2
(define-public python-txtorcon
(package
(name "python-txtorcon")
- (version "19.0.0")
+ (version "23.0.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "txtorcon" version))
(sha256
(base32
- "0fxzhsc62bhmr730vj9pzallmw56gz6iykvl28a5agrycm0bfc9p"))
- (modules '((guix build utils)))
- (snippet #~(substitute* "txtorcon/controller.py"
- (("from collections import Sequence")
- "from collections.abc import Sequence")))))
+ "09a3k4g90pvs0q006ighka7xic39nnnk9bfrka23g4b8cynzy982"))))
(build-system python-build-system)
(arguments
- ;; The tests fail immediately due to a missing file. Reported upstream:
- ;; <https://github.com/meejah/txtorcon/issues/330>
- (list #:tests? #f))
+ (list #:phases #~(modify-phases %standard-phases
+ (add-before 'check 'disable-failing-tests
+ (lambda _
+ ;; These tests fail
+ (substitute* "test/test_router.py"
+ (("\\W+def test_countrycode\\(self\\):" all)
+ (string-append
+ " from unittest import skip as _skip\n"
+ " @_skip('Fails during Guix build')\n" all))
+ (("\\W+def test_get_location_private\\(self\\):"
+ all)
+ (string-append
+ " @_skip('Fails during Guix build')\n" all)))
+ ;; This test errors out
+ (substitute* "test/test_util.py"
+ (("\\W+def test_real_addr\\(self\\):" all)
+ (string-append
+ " @_skip('Fails during Guix build')\n" all))))))))
(propagated-inputs (list python-automat
python-idna
python-incremental
@@ -1270,6 +1281,7 @@ (define-public python-txtorcon
python-service-identity
python-twisted
python-zope-interface))
+ (native-inputs (list python-mock))
(home-page "https://github.com/meejah/txtorcon")
(synopsis "Twisted-based Tor controller client")
(description "This package provides a Twisted-based Tor controller client,
--
2.40.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* bug#63486: [PATCH 0/3] gnu: python-txtorcon: Fix build, style, update.
2023-05-13 16:56 [bug#63486] [PATCH 0/3] gnu: python-txtorcon: Fix build, style, update Juliana Sims
` (3 preceding siblings ...)
2023-05-13 17:31 ` [bug#63486] [PATCH v2 1/3] gnu: python-txtorcon: Fix failing build Juliana Sims
@ 2023-05-22 14:54 ` Ludovic Courtès
4 siblings, 0 replies; 8+ messages in thread
From: Ludovic Courtès @ 2023-05-22 14:54 UTC (permalink / raw)
To: Juliana Sims; +Cc: 63486-done
Hi Juliana,
Juliana Sims <juli@incana.org> skribis:
> gnu: python-txtorcon: Fix failing build.
> gnu: python-txtorcon: Run guix style.
> gnu: python-txtorcon: Update to 23.0.0.
Applied v2, thanks!
Ludo’.
^ permalink raw reply [flat|nested] 8+ messages in thread