~ruther/guix-local

3722cb156a0f779515218b4abf0b93ceadc6ffb4 — Sharlatan Hellseher 1 year, 1 month ago 4fa41a0
gnu: python-txtorcon: Update to 24.8.0.

Reported in #75979 by bdju <bdju@tilde.team>.

Test suite failed to complete successfully, this change refreshes
version and simplify package.

* gnu/packages/python-crypto.scm: Add (gnu packages lsof).
(python-txtorcon): Update to 24.8.0.
[build-system]: Swap to pyproject-build-system.
[arguments] <phases>: Remove 'disable-failing-tests.
[inputs]: Add lsof.
[native-inputs]: Remove python-mock; add python-pytest,
python-setuptools, and python-wheel.

Change-Id: I26bc9bb1040b4e4408405e40db108a38e674df81
1 files changed, 19 insertions(+), 30 deletions(-)

M gnu/packages/python-crypto.scm
M gnu/packages/python-crypto.scm => gnu/packages/python-crypto.scm +19 -30
@@ 30,6 30,7 @@
;;; Copyright © 2023 Juliana Sims <juli@incana.org>
;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2024 jgart <jgart@dismail.de>
;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;


@@ 62,6 63,7 @@
  #:use-module (gnu packages crypto)
  #:use-module (gnu packages kerberos)
  #:use-module (gnu packages libffi)
  #:use-module (gnu packages lsof)
  #:use-module (gnu packages multiprecision)
  #:use-module (gnu packages password-utils)
  #:use-module (gnu packages pkg-config)


@@ 1338,41 1340,28 @@ Password-Authenticated Key Exchange algorithm.")
(define-public python-txtorcon
  (package
    (name "python-txtorcon")
    (version "23.0.0")
    (version "24.8.0")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "txtorcon" version))
              (sha256
               (base32
                "09a3k4g90pvs0q006ighka7xic39nnnk9bfrka23g4b8cynzy982"))))
    (build-system python-build-system)
    (arguments
     (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
                             python-pyopenssl
                             python-service-identity
                             python-twisted
                             python-zope-interface))
    (native-inputs (list python-mock))
                "1l4ajw4h7nay4vmllh6cs7zh3hnh8vj4yvgfnq3m734wil9ikzmy"))))
    (build-system pyproject-build-system)
    (native-inputs
     (list python-pytest
           python-setuptools
           python-wheel))
    (inputs
     (list lsof))
    (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,