Subject: [PATCH] python-aws-xray-sdk, python-jose, python-kombu, and python-moto fail to build

From: "Dr. Arne Babenhauserheide" <[email-masked]>
Date: Tue, 21 Jan 2025 01:02:07 +0100

Attached are patches that get them to build.

From 9f02a220b44ff2a60b0ffaa6bf6ced15fc23353e Mon Sep 17 00:00:00 2001
Message-ID: <[email-masked]>
From: Arne Babenhauserheide <[email-masked]>
Date: Tue, 21 Jan 2025 00:38:15 +0100
Subject: [PATCH 1/3] gnu: python-aws-xray-sdk and python-jose: fix build

* gnu/packages/python-web.scm (python-aws-xray-sdk): update python-sqlalchemy
dependency to v2
* gnu/packages/python-web.scm (python-aws-xray-sdk): disable broken tests
* gnu/packages/python-web.scm (python-jose): ignore
tests/algorithms/test_EC_compat.py (fails due to spurious linebreaks in the output)
---
 gnu/packages/python-web.scm | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 4e2738cb634..f62e5d20171 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -1027,9 +1027,14 @@ (define-public python-aws-xray-sdk
              "--ignore=tests/ext/pymysql/test_pymysql.py"
              "--ignore=tests/ext/pynamodb/test_pynamodb.py"
              "--ignore=tests/ext/sqlalchemy_core/test_postgres.py"
+             ;; Test uses BaseQuery that is missing from flask_sqlalchemy
+             "--ignore=tests/ext/flask_sqlalchemy/test_query.py"
+             "--ignore=tests/ext/sqlalchemy/test_query.py"
              "--ignore=tests/test_async_recorder.py"
              ;; FIXME: Why is this failing?
              "--ignore=tests/test_patcher.py"
+             ;; FIXME: Why is this failing?
+             "--ignore=tests/test_lambda_context.py"
              ;; These tests want to access httpbin.org.
              "--ignore=tests/ext/requests/test_requests.py"
              "--ignore=tests/ext/httplib/test_httplib.py"
@@ -1053,7 +1058,7 @@ (define-public python-aws-xray-sdk
            python-pytest-asyncio
            python-pytest-benchmark
            python-requests
-           python-sqlalchemy
+           python-sqlalchemy-2
            python-webtest
            python-setuptools
            python-wheel))
@@ -1580,8 +1585,8 @@ (define-public python-jose
        (modify-phases %standard-phases
          (replace 'check
            (lambda* (#:key tests? #:allow-other-keys)
-             (if tests?
-                 (invoke "pytest" "-vv")
+             (if tests? ;; tests fail due to spurious linebreaks in the output
+                 (invoke "pytest" "-vv" "--ignore=tests/algorithms/test_EC_compat.py")
                  (format #t "test suite not run~%"))
              #t)))))
     (native-inputs

base-commit: 0a26cd43f92f1a9bcb07750855e18693e8d0adf3
-- 
2.47.1

From 79aa5959bd41636a874ddc39665f1eb317f318b6 Mon Sep 17 00:00:00 2001
Message-ID: <[email-masked]>
In-Reply-To: <[email-masked]>
References: <[email-masked]>
From: Arne Babenhauserheide <[email-masked]>
Date: Tue, 21 Jan 2025 00:43:48 +0100
Subject: [PATCH 2/3] gnu: python-kombu: fix build

* gnu/packages/python-xyz.scm (python-kombu): add native-inputs python-setuptools and python-wheel

Change-Id: I127a4d59fec6db207649df14d53efb56804a94e8
---
 gnu/packages/python-xyz.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 728ce91381e..be5e040cd3d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20618,7 +20618,9 @@ (define-public python-kombu
            python-pyro4
            python-pytest
            python-pytest-sugar
-           python-tzdata))
+           python-tzdata
+           python-setuptools
+           python-wheel))
     (propagated-inputs
      (list python-amqp python-typing-extensions python-vine))
     (home-page "https://kombu.readthedocs.io")
-- 
2.47.1

From c07ecc58bd8df173c110ccb85bf1a520d585436e Mon Sep 17 00:00:00 2001
Message-ID: <[email-masked]>
In-Reply-To: <[email-masked]>
References: <[email-masked]>
From: Arne Babenhauserheide <[email-masked]>
Date: Tue, 21 Jan 2025 00:50:40 +0100
Subject: [PATCH 3/3] gnu: python-moto: fix build

* gnu/packages/python-xyz.scm (python-moto): add native-input python-wheel

Change-Id: I58a5683c00a3700824bd1dc5ef6d6361d0cfad2d
---
 gnu/packages/python-xyz.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index be5e040cd3d..289bae55d35 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19792,6 +19792,7 @@ (define-public python-moto
            python-responses
            python-sshpubkeys
            python-werkzeug
+           python-wheel
            python-xmltodict))
     (home-page "https://github.com/spulec/moto")
     (synopsis "Mock out the boto library")
-- 
2.47.1

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de