From 3722cb156a0f779515218b4abf0b93ceadc6ffb4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 4 Feb 2025 10:56:06 +0000 Subject: [PATCH] gnu: python-txtorcon: Update to 24.8.0. Reported in #75979 by bdju . 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] : Remove 'disable-failing-tests. [inputs]: Add lsof. [native-inputs]: Remove python-mock; add python-pytest, python-setuptools, and python-wheel. Change-Id: I26bc9bb1040b4e4408405e40db108a38e674df81 --- gnu/packages/python-crypto.scm | 49 +++++++++++++--------------------- 1 file changed, 19 insertions(+), 30 deletions(-) diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm index bf2262950adb7205e3c3ad8baaf876c4898d0ff3..5984f7fc570ac90df7e83e9104405449a8d2a364 100644 --- a/gnu/packages/python-crypto.scm +++ b/gnu/packages/python-crypto.scm @@ -30,6 +30,7 @@ ;;; Copyright © 2023 Juliana Sims ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2024 jgart +;;; Copyright © 2025 Sharlatan Hellseher ;;; ;;; 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,