From be460d0ee3128d4020715bff67d08d650b8081e5 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 30 Oct 2025 13:22:01 +0000 Subject: [PATCH] gnu: python-androguard: Switch to pyproject. * gnu/packages/android.scm (python-androguard): [build-system]: Switch to pyproject-build-system. [arguments] : Disable missing tests. [native-inputs]: Remove python-codecov, python-coverage, python-mock, python-nose, and python-nose-timer; add python-setuptools. Change-Id: I0cb9b604bc17d272843244373561d74ae4e913e2 --- gnu/packages/android.scm | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm index 2ceb69cd5cc0364cf88778b7f4e1ffd20d4f857d..c70708e6223ad14ef24a1fe6b93b7e136500fa26 100644 --- a/gnu/packages/android.scm +++ b/gnu/packages/android.scm @@ -1116,28 +1116,20 @@ safest way, on a file image.") (define-public python-androguard (package (name "python-androguard") - (version "3.3.5") + (version "3.3.5") ;TODO: It was released in 2019, there is a fresh version (source - (origin - ;; The pypi release doesn't have the tests, but the tests use - ;; packaged binaries, so we skip them. - (method url-fetch) - (uri (pypi-uri "androguard" version)) - (sha256 - (base32 - "18nd08rbvc4d1p9r70qp76rcbldvpv89prsi15alrmxdlnimqrgh")))) - (build-system python-build-system) + (origin + (method url-fetch) + (uri (pypi-uri "androguard" version)) + (sha256 + (base32 "18nd08rbvc4d1p9r70qp76rcbldvpv89prsi15alrmxdlnimqrgh")))) + (build-system pyproject-build-system) + ;; XXX: The pypi release doesn't have the tests, but the tests use + ;; packaged binaries, so we skip them. (arguments - '(#:phases - (modify-phases %standard-phases - (replace 'check - ;; Adapted from .travis.yml - (lambda _ - (invoke "nosetests" "--with-coverage" "--with-timer" - "--timer-top-n" "50")))))) + (list #:tests? #f)) (native-inputs - (list python-codecov python-coverage python-mock python-nose - python-nose-timer)) + (list python-setuptools)) (propagated-inputs (list python-asn1crypto python-click