* [bug#74345] [PATCH v2 01/14] gnu: python-botocore: Update to 1.35.54.
2024-11-14 11:52 ` [bug#74345] [PATCH v2 00/14] " Sharlatan Hellseher
@ 2024-11-14 11:52 ` Sharlatan Hellseher
2024-11-14 11:52 ` [bug#74345] [PATCH v2 02/14] gnu: python-s3transfer: Update to 0.10.3 Sharlatan Hellseher
` (12 subsequent siblings)
13 siblings, 0 replies; 30+ messages in thread
From: Sharlatan Hellseher @ 2024-11-14 11:52 UTC (permalink / raw)
To: 74345
Cc: Sharlatan Hellseher, Lars-Dominik Braun, Marius Bakke,
Munyoki Kilyungi, Sharlatan Hellseher, Tanguy Le Carrour, jgart
* gnu/packages/python-xyz.scm (python-botocore): Update to 1.35.54.
[arguments]<tests>: Enable tests. <test-flags>: Disable some failing
tests.
[native-inputs]: Add python-jsonschema, python-pytest,
python-pytest-xdist, python-setuptools, and python-wheel.
Change-Id: I7730f85d5ace5b8643f8e9201ea46e6723b1a022
---
gnu/packages/python-xyz.scm | 31 ++++++++++++++++++++++---------
1 file changed, 22 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 5083473c08..c491883431 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19364,24 +19364,37 @@ (define-public python-botocore
;; are compatible.
(package
(name "python-botocore")
- (version "1.24.35")
+ (version "1.35.54")
(source
(origin
(method url-fetch)
(uri (pypi-uri "botocore" version))
(sha256
- (base32
- "0rv8mvhq5s373zdjs2yb45hzvqcqdh2lp2rbb21jjc8ciwnl5d9n"))))
- (build-system python-build-system)
+ (base32 "0xhsi4gfmzh1r96zlaa55p9i3kvh5lj4grp866dr72lwwnfba6qk"))))
+ (build-system pyproject-build-system)
(arguments
- ;; FIXME: Many tests are failing.
- '(#:tests? #f))
+ (list
+ #:test-flags
+ #~(list "--numprocesses" "auto"
+ ;; It strugles to find 'botocore'.
+ "--ignore" "tests/functional/leak/test_resource_leaks.py"
+ ;; Tests require networking.
+ "--ignore" "tests/integration")))
+ (native-inputs
+ (list python-jsonschema
+ python-pytest
+ python-pytest-xdist
+ python-setuptools
+ python-wheel))
(propagated-inputs
- (list python-dateutil python-jmespath python-urllib3))
+ (list python-dateutil
+ python-jmespath
+ python-urllib3))
(home-page "https://github.com/boto/botocore")
(synopsis "Low-level interface to AWS")
- (description "Botocore is a Python library that provides a low-level
-interface to the Amazon Web Services (AWS) API.")
+ (description
+ "Botocore is a Python library that provides a low-level interface to the
+Amazon Web Services (AWS) API.")
(license license:asl2.0)))
(define-public python-boto3
--
2.46.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#74345] [PATCH v2 02/14] gnu: python-s3transfer: Update to 0.10.3.
2024-11-14 11:52 ` [bug#74345] [PATCH v2 00/14] " Sharlatan Hellseher
2024-11-14 11:52 ` [bug#74345] [PATCH v2 01/14] gnu: python-botocore: Update to 1.35.54 Sharlatan Hellseher
@ 2024-11-14 11:52 ` Sharlatan Hellseher
2024-11-14 11:52 ` [bug#74345] [PATCH v2 03/14] gnu: python-boto3: Update to 1.35.54 Sharlatan Hellseher
` (11 subsequent siblings)
13 siblings, 0 replies; 30+ messages in thread
From: Sharlatan Hellseher @ 2024-11-14 11:52 UTC (permalink / raw)
To: 74345
Cc: Sharlatan Hellseher, Lars-Dominik Braun, Marius Bakke,
Munyoki Kilyungi, Sharlatan Hellseher, Tanguy Le Carrour, jgart
* gnu/packages/python-web.scm (python-s3transfer): Update to 0.10.3.
[build-system]: Swap to pyprojct-build-system.
[native-inputs]: Add python-pytest, python-pytest-xdist,
python-setuptools, and python-wheel.
Change-Id: I41d35dc89ea6f9ff24f33f6bfcc1fc6a22ebe890
---
gnu/packages/python-web.scm | 46 ++++++++++++++++++++-----------------
1 file changed, 25 insertions(+), 21 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 7bbf05f368..b18248e472 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4718,31 +4718,35 @@ (define-public python-betamax-serializers
(define-public python-s3transfer
(package
(name "python-s3transfer")
- (version "0.5.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "s3transfer" version))
- (sha256
- (base32
- "0k6sc956yrrv9b4laa0r79jhxajpyxr21jcd1ka8m1n53lz85vah"))))
- (build-system python-build-system)
+ (version "0.10.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "s3transfer" version))
+ (sha256
+ (base32 "032bjky1q8r5x80mvb0ah60g0zq4snwf0xa4c7779m44mdsfsl2g"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- ;; Some of the 'integration' tests require network access or
- ;; login credentials.
- (invoke "nosetests" "--exclude=integration")))))))
+ (list
+ #:test-flags
+ #~(list "--numprocesses" "auto"
+ ;; Tests require networking.
+ "--ignore" "tests/integration")))
(native-inputs
- (list python-docutils python-mock python-nose))
+ (list python-docutils
+ python-mock
+ python-nose
+ python-pytest
+ python-pytest-xdist
+ python-setuptools
+ python-wheel))
(propagated-inputs
- (list python-botocore python-urllib3))
- (synopsis "Amazon S3 Transfer Manager")
- (description "S3transfer is a Python library for managing Amazon S3
-transfers.")
+ (list python-botocore
+ python-urllib3))
(home-page "https://github.com/boto/s3transfer")
+ (synopsis "Amazon S3 Transfer Manager")
+ (description
+ "S3transfer is a Python library for managing Amazon S3 transfers.")
(license license:asl2.0)))
(define-public python-flask-jwt
--
2.46.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#74345] [PATCH v2 03/14] gnu: python-boto3: Update to 1.35.54.
2024-11-14 11:52 ` [bug#74345] [PATCH v2 00/14] " Sharlatan Hellseher
2024-11-14 11:52 ` [bug#74345] [PATCH v2 01/14] gnu: python-botocore: Update to 1.35.54 Sharlatan Hellseher
2024-11-14 11:52 ` [bug#74345] [PATCH v2 02/14] gnu: python-s3transfer: Update to 0.10.3 Sharlatan Hellseher
@ 2024-11-14 11:52 ` Sharlatan Hellseher
2024-11-14 11:52 ` [bug#74345] [PATCH v2 04/14] gnu: awscli: Update to 1.35.20 Sharlatan Hellseher
` (10 subsequent siblings)
13 siblings, 0 replies; 30+ messages in thread
From: Sharlatan Hellseher @ 2024-11-14 11:52 UTC (permalink / raw)
To: 74345
Cc: Sharlatan Hellseher, Lars-Dominik Braun, Marius Bakke,
Munyoki Kilyungi, Sharlatan Hellseher, Tanguy Le Carrour, jgart
* gnu/packages/python-xyz.scm (python-boto3): Update to 1.35.54. Improve
package style.
[bulid-system]: Swap to pyproject-build-system.
[native-inputs]: Add python-pytest-xdist, python-setuptools, and
python-wheel.
Change-Id: I413fcfc599d0d3ccf8587136629648c8a04cd364
---
gnu/packages/python-xyz.scm | 48 ++++++++++++++++++++-----------------
1 file changed, 26 insertions(+), 22 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c491883431..9ddc4ea6c2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19400,31 +19400,35 @@ (define-public python-botocore
(define-public python-boto3
(package
(name "python-boto3")
- (version "1.21.35")
- (home-page "https://github.com/boto/boto3")
- (source (origin
- (method git-fetch)
- (uri (git-reference (url home-page) (commit version)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "1kdyf238rpfldnpzs0rdh3nhjn6hwfym4faskyhzlgzkf1smmbg1"))))
+ (version "1.35.54")
+ (source
+ (origin
+ (method git-fetch) ; no tests in PyPI release
+ (uri (git-reference
+ (url "https://github.com/boto/boto3")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0w0k719i8pyzkvd2snv6z91r57k6cxkq1i3phygdpwzk0k6acvj2"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'delete-network-tests
- ;; Deleting integration tests because they are trying to connect to AWS.
- (lambda _
- (delete-file-recursively "tests/integration")))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-v")))))))
- (build-system python-build-system)
+ (list
+ #:test-flags
+ #~(list "--numprocesses" "auto"
+ ;; Tests require networking.
+ "--ignore" "tests/integration")))
(native-inputs
- (list python-nose python-mock python-pytest))
+ (list python-mock
+ python-nose
+ python-pytest
+ python-pytest-xdist
+ python-setuptools
+ python-wheel))
(propagated-inputs
- (list python-botocore python-jmespath python-s3transfer))
+ (list python-botocore
+ python-jmespath
+ python-s3transfer))
+ (home-page "https://github.com/boto/boto3")
(synopsis "AWS SDK for Python")
(description
"Boto3 is a Python library for writing programs that interact with
--
2.46.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#74345] [PATCH v2 04/14] gnu: awscli: Update to 1.35.20.
2024-11-14 11:52 ` [bug#74345] [PATCH v2 00/14] " Sharlatan Hellseher
` (2 preceding siblings ...)
2024-11-14 11:52 ` [bug#74345] [PATCH v2 03/14] gnu: python-boto3: Update to 1.35.54 Sharlatan Hellseher
@ 2024-11-14 11:52 ` Sharlatan Hellseher
2024-11-14 11:52 ` [bug#74345] [PATCH v2 05/14] gnu: Remove python-boto Sharlatan Hellseher
` (9 subsequent siblings)
13 siblings, 0 replies; 30+ messages in thread
From: Sharlatan Hellseher @ 2024-11-14 11:52 UTC (permalink / raw)
To: 74345
Cc: Sharlatan Hellseher, Lars-Dominik Braun, Marius Bakke,
Munyoki Kilyungi, Sharlatan Hellseher, Tanguy Le Carrour, jgart
* gnu/packages/python-web.scm (awscli): Update to 1.35.20. Use
G-expressions.
[source]: Swap to git checkout as it contains tests.
[build-system]: Swap to pyproject-build-system.
[phases]: Delete use-recent-pyyaml phase; add set-invorenment phase.
[inputs]: Remove groff, python-colorama-for-awscli, and python-pyyaml-5;
add groff-minimal, python-colorama, and python-pyyaml.
[native-inputs]: Add python-pytest, python-pytest-xdist,
python-setuptools, and python-wheel.
Change-Id: Ib7542a783fe65bb93d9f4cbfb89241190813fde4
---
gnu/packages/python-web.scm | 81 ++++++++++++++++++++++---------------
1 file changed, 49 insertions(+), 32 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index b18248e472..1421936eb6 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4136,47 +4136,64 @@ (define-public awscli
(package
;; Note: updating awscli typically requires updating botocore as well.
(name "awscli")
- (version "1.22.90")
+ (version "1.35.20")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri name version))
+ (method git-fetch) ; no tests in PyPI release
+ (uri (git-reference
+ (url "https://github.com/aws/aws-cli")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "0ky4ax4xh7s8w1l0hwc7w9ii8afvh9nib3kz09qhiqdinxzrlv54"))))
- (build-system python-build-system)
+ (base32 "1hj1hj374hdwb8wq2xw20ywjyrv37s65nfsjzs6k9wa0f629alkf"))))
+ (build-system pyproject-build-system)
(arguments
- ;; FIXME: The 'pypi' release does not contain tests.
- '(#:tests? #f
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'use-recent-pyyaml
- (lambda _
- (substitute* '("awscli.egg-info/requires.txt"
- "setup.cfg"
- "setup.py")
- (("<5.5") "<=6"))))
- (add-after 'unpack 'fix-reference-to-groff
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* "awscli/help.py"
- (("if not self._exists_on_path\\('groff'\\):") "")
- (("raise ExecutableNotFoundError\\('groff'\\)") "")
- (("cmdline = \\['groff'")
- (string-append "cmdline = ['"
- (search-input-file inputs "bin/groff")
- "'"))))))))
+ (list
+ #:test-flags
+ #~(list "--numprocesses" "auto"
+ ;; Tests require networking.
+ "--ignore" "tests/integration"
+ ;; It strugles to set PYTHONPATH.
+ ;;
+ ;; AssertionError: 'argument operation: Invalid choice, valid
+ ;; choices are:' not found in '
+ "-k" (string-append "not test_subscribe_to_shard_removed"
+ " and not test_start_conversation_removed"))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-reference-to-groff
+ (lambda _
+ ;; XXX: Consider to use wrap-program instead, it tries to parse
+ ;; the PATH.
+ (substitute* "awscli/help.py"
+ (("if self._exists_on_path\\('groff'\\):") "if 'groff':")
+ (("raise ExecutableNotFoundError\\('groff'\\)") "")
+ (("cmdline = \\['groff'")
+ (format #f "cmdline = ['~a/bin/groff'"
+ #$(this-package-input "groff-minimal"))))))
+ (add-before 'check 'set-environment
+ (lambda _
+ ;; PermissionError: [Errno 13] Permission denied:
+ ;; '/homeless-shelter'
+ (setenv "HOME" "/tmp"))))))
+ (native-inputs
+ (list python-pytest
+ python-pytest-xdist
+ python-setuptools
+ python-wheel))
(inputs
- (list groff
- python-colorama-for-awscli
+ (list groff-minimal
python-botocore
- python-s3transfer
+ python-colorama
python-docutils-0.15
- python-pyyaml-5
- python-rsa))
+ python-pyyaml
+ python-rsa
+ python-s3transfer))
(home-page "https://aws.amazon.com/cli/")
(synopsis "Command line client for AWS")
- (description "AWS CLI provides a unified command line interface to the
-Amazon Web Services (AWS) API.")
+ (description
+ "AWS CLI provides a unified command line interface to the Amazon Web
+Services (AWS) API.")
(license license:asl2.0)))
(define-public awscli-2
--
2.46.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#74345] [PATCH v2 05/14] gnu: Remove python-boto.
2024-11-14 11:52 ` [bug#74345] [PATCH v2 00/14] " Sharlatan Hellseher
` (3 preceding siblings ...)
2024-11-14 11:52 ` [bug#74345] [PATCH v2 04/14] gnu: awscli: Update to 1.35.20 Sharlatan Hellseher
@ 2024-11-14 11:52 ` Sharlatan Hellseher
2024-11-14 11:52 ` [bug#74345] [PATCH v2 06/14] gnu: Remove python-colorama-for-awscli Sharlatan Hellseher
` (8 subsequent siblings)
13 siblings, 0 replies; 30+ messages in thread
From: Sharlatan Hellseher @ 2024-11-14 11:52 UTC (permalink / raw)
To: 74345
Cc: Sharlatan Hellseher, Lars-Dominik Braun, Marius Bakke,
Munyoki Kilyungi, Sharlatan Hellseher, Tanguy Le Carrour, jgart
* gnu/packages/python-xyz.scm (python-boto): Delete variable.
Change-Id: I4ff3f200734bce027334383d1f56c28134808a9d
---
gnu/packages/python-xyz.scm | 27 ---------------------------
1 file changed, 27 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9ddc4ea6c2..ebf7e89225 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19332,33 +19332,6 @@ (define-public python-bokeh
browser from Python.")
(license license:bsd-3)))
-(define-public python-boto
- (package
- (name "python-boto")
- (version "2.49.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "boto" version))
- (sha256
- (base32
- "0njy09c4wjx7ipxhwi6vv404nflyiasl78vwwxxpclnql903n3ga"))))
- (build-system python-build-system)
- (arguments
- ;; XXX: This package is unmaintained and has problems with newer versions
- ;; of Python 3 as well as test libraries. 'python-moto' still uses a
- ;; subset of this library, so keep it around for now, but disable tests.
- '(#:tests? #f))
- (propagated-inputs
- (list python-paramiko python-requests))
- (home-page "https://github.com/boto/boto")
- (synopsis "Python interfaces for Amazon Web Services")
- (description
- "This package provides various facilities for interacting with Amazon
-Web Services through Python.
-
-This software is unmaintained, and new projects should use @code{boto3} instead.")
- (license license:expat)))
-
(define-public python-botocore
;; Note: When updating botocore, also make sure that boto3 and awscli
;; are compatible.
--
2.46.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#74345] [PATCH v2 06/14] gnu: Remove python-colorama-for-awscli.
2024-11-14 11:52 ` [bug#74345] [PATCH v2 00/14] " Sharlatan Hellseher
` (4 preceding siblings ...)
2024-11-14 11:52 ` [bug#74345] [PATCH v2 05/14] gnu: Remove python-boto Sharlatan Hellseher
@ 2024-11-14 11:52 ` Sharlatan Hellseher
2024-11-14 11:52 ` [bug#74345] [PATCH v2 07/14] gnu: python-botocore: Update to 1.35.59 Sharlatan Hellseher
` (7 subsequent siblings)
13 siblings, 0 replies; 30+ messages in thread
From: Sharlatan Hellseher @ 2024-11-14 11:52 UTC (permalink / raw)
To: 74345
Cc: Sharlatan Hellseher, Lars-Dominik Braun, Marius Bakke,
Munyoki Kilyungi, Sharlatan Hellseher, Tanguy Le Carrour, jgart
* gnu/packages/python-xyz.scm (python-colorama-for-awscli): Delete variable.
Change-Id: Idb10200319c71fde3fcb78f1b4b0d6f9554166a0
---
gnu/packages/python-xyz.scm | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ebf7e89225..73b645b1a1 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -18914,18 +18914,6 @@ (define-public python-colorama
(home-page "https://pypi.org/project/colorama/")
(license license:bsd-3)))
-;; awscli and botocore do not accept version 0.4.4
-(define-public python-colorama-for-awscli
- (package
- (inherit python-colorama)
- (version "0.4.3")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "colorama" version))
- (sha256
- (base32 "189n8hpijy14jfan4ha9f5n06mnl33cxz7ay92wjqgkr639s0vg9"))))))
-
(define-public python-monthdelta
(package
(name "python-monthdelta")
--
2.46.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#74345] [PATCH v2 07/14] gnu: python-botocore: Update to 1.35.59.
2024-11-14 11:52 ` [bug#74345] [PATCH v2 00/14] " Sharlatan Hellseher
` (5 preceding siblings ...)
2024-11-14 11:52 ` [bug#74345] [PATCH v2 06/14] gnu: Remove python-colorama-for-awscli Sharlatan Hellseher
@ 2024-11-14 11:52 ` Sharlatan Hellseher
2024-11-14 11:52 ` [bug#74345] [PATCH v2 08/14] gnu: python-boto3: " Sharlatan Hellseher
` (6 subsequent siblings)
13 siblings, 0 replies; 30+ messages in thread
From: Sharlatan Hellseher @ 2024-11-14 11:52 UTC (permalink / raw)
To: 74345
Cc: Ricardo Wurmus, Lars-Dominik Braun, Marius Bakke,
Munyoki Kilyungi, Sharlatan Hellseher, Tanguy Le Carrour, jgart
From: Ricardo Wurmus <rekado@elephly.net>
* gnu/packages/python-xyz.scm (python-botocore): Update to 1.35.59.
Change-Id: Iee873e6a84d582271fcbcd39e78521583574fb40
---
gnu/packages/python-xyz.scm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 73b645b1a1..da945e12fe 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19325,13 +19325,14 @@ (define-public python-botocore
;; are compatible.
(package
(name "python-botocore")
- (version "1.35.54")
+ (version "1.35.59")
(source
(origin
(method url-fetch)
(uri (pypi-uri "botocore" version))
(sha256
- (base32 "0xhsi4gfmzh1r96zlaa55p9i3kvh5lj4grp866dr72lwwnfba6qk"))))
+ (base32
+ "161wp1ribgkc23w6wcfs6zzig2j84ava7ylxhs3jrh6zzrayc36y"))))
(build-system pyproject-build-system)
(arguments
(list
--
2.46.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#74345] [PATCH v2 08/14] gnu: python-boto3: Update to 1.35.59.
2024-11-14 11:52 ` [bug#74345] [PATCH v2 00/14] " Sharlatan Hellseher
` (6 preceding siblings ...)
2024-11-14 11:52 ` [bug#74345] [PATCH v2 07/14] gnu: python-botocore: Update to 1.35.59 Sharlatan Hellseher
@ 2024-11-14 11:52 ` Sharlatan Hellseher
2024-11-14 11:52 ` [bug#74345] [PATCH v2 09/14] gnu: awscli: Update to 1.36.0 Sharlatan Hellseher
` (5 subsequent siblings)
13 siblings, 0 replies; 30+ messages in thread
From: Sharlatan Hellseher @ 2024-11-14 11:52 UTC (permalink / raw)
To: 74345
Cc: Ricardo Wurmus, Lars-Dominik Braun, Marius Bakke,
Munyoki Kilyungi, Sharlatan Hellseher, Tanguy Le Carrour, jgart
From: Ricardo Wurmus <rekado@elephly.net>
* gnu/packages/python-xyz.scm (python-boto3): Update to 1.35.59.
[native-inputs]: Remove python-nose.
Change-Id: Iafc22bafbf6ef185c2d9f4907386bd904ebaecbd
---
gnu/packages/python-xyz.scm | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index da945e12fe..ca021c2776 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19362,7 +19362,7 @@ (define-public python-botocore
(define-public python-boto3
(package
(name "python-boto3")
- (version "1.35.54")
+ (version "1.35.59")
(source
(origin
(method git-fetch) ; no tests in PyPI release
@@ -19371,17 +19371,16 @@ (define-public python-boto3
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "0w0k719i8pyzkvd2snv6z91r57k6cxkq1i3phygdpwzk0k6acvj2"))))
+ (base32 "10bdzdaw7qg2m5n5ivb2zzsdl7wgjmz05xyxajd4cmk629ick95m"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags
#~(list "--numprocesses" "auto"
- ;; Tests require networking.
+ ;; Integration tests are trying to connect to AWS.
"--ignore" "tests/integration")))
(native-inputs
(list python-mock
- python-nose
python-pytest
python-pytest-xdist
python-setuptools
--
2.46.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#74345] [PATCH v2 09/14] gnu: awscli: Update to 1.36.0.
2024-11-14 11:52 ` [bug#74345] [PATCH v2 00/14] " Sharlatan Hellseher
` (7 preceding siblings ...)
2024-11-14 11:52 ` [bug#74345] [PATCH v2 08/14] gnu: python-boto3: " Sharlatan Hellseher
@ 2024-11-14 11:52 ` Sharlatan Hellseher
2024-11-14 11:52 ` [bug#74345] [PATCH v2 10/14] gnu: awscli-2: Add missing inputs Sharlatan Hellseher
` (4 subsequent siblings)
13 siblings, 0 replies; 30+ messages in thread
From: Sharlatan Hellseher @ 2024-11-14 11:52 UTC (permalink / raw)
To: 74345
Cc: Ricardo Wurmus, Sharlatan Hellseher, Lars-Dominik Braun,
Marius Bakke, Munyoki Kilyungi, Sharlatan Hellseher,
Tanguy Le Carrour, jgart
From: Ricardo Wurmus <rekado@elephly.net>
* gnu/packages/python-web.scm (awscli): Update to 1.36.0.
[arguments]<test-flags>: Silent more failing tests.
Co-Authored-By: Sharlatan Hellseher <sharlatanus@gmail.com>
Change-Id: Ia06ad5128b13dbc68ec92f93dc025644605cd30c
---
gnu/packages/python-web.scm | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 1421936eb6..ba689a8a98 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4136,7 +4136,7 @@ (define-public awscli
(package
;; Note: updating awscli typically requires updating botocore as well.
(name "awscli")
- (version "1.35.20")
+ (version "1.36.0")
(source
(origin
(method git-fetch) ; no tests in PyPI release
@@ -4145,7 +4145,7 @@ (define-public awscli
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "1hj1hj374hdwb8wq2xw20ywjyrv37s65nfsjzs6k9wa0f629alkf"))))
+ (base32 "1iwivc5kj2h5619rvbncrh4649lalxj7bxndzvrjw398vv7cixp5"))))
(build-system pyproject-build-system)
(arguments
(list
@@ -4158,6 +4158,10 @@ (define-public awscli
;; AssertionError: 'argument operation: Invalid choice, valid
;; choices are:' not found in '
"-k" (string-append "not test_subscribe_to_shard_removed"
+ ;; Tests fail during mocking.
+ " and not test_expected_runtime_dependencies"
+ " and not test_expected_unbounded_runtime_dependencies"
+ " and not test_no_groff_or_mandoc_exists"
" and not test_start_conversation_removed"))
#:phases
#~(modify-phases %standard-phases
--
2.46.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#74345] [PATCH v2 10/14] gnu: awscli-2: Add missing inputs.
2024-11-14 11:52 ` [bug#74345] [PATCH v2 00/14] " Sharlatan Hellseher
` (8 preceding siblings ...)
2024-11-14 11:52 ` [bug#74345] [PATCH v2 09/14] gnu: awscli: Update to 1.36.0 Sharlatan Hellseher
@ 2024-11-14 11:52 ` Sharlatan Hellseher
2024-11-14 11:52 ` [bug#74345] [PATCH v2 11/14] gnu: awscli-2: Update to 2.3.1 Sharlatan Hellseher
` (3 subsequent siblings)
13 siblings, 0 replies; 30+ messages in thread
From: Sharlatan Hellseher @ 2024-11-14 11:52 UTC (permalink / raw)
To: 74345
Cc: Ricardo Wurmus, Lars-Dominik Braun, Marius Bakke,
Munyoki Kilyungi, Sharlatan Hellseher, Tanguy Le Carrour, jgart
From: Ricardo Wurmus <rekado@elephly.net>
* gnu/packages/python-web.scm (awscli-2)[native-inputs]: Add
python-poetry-core and python-pytest.
Change-Id: Ia0d160eca47f9e39ba902481c7146ad85b848c2a
---
gnu/packages/python-web.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index ba689a8a98..a80d037bdf 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4217,7 +4217,10 @@ (define-public awscli-2
'(#:tests? #f))
(inputs
(list python-importlib-resources
- python-executor))))
+ python-executor))
+ (native-inputs
+ (list python-poetry-core
+ python-pytest))))
(define-public python-wsgiproxy2
--
2.46.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#74345] [PATCH v2 11/14] gnu: awscli-2: Update to 2.3.1.
2024-11-14 11:52 ` [bug#74345] [PATCH v2 00/14] " Sharlatan Hellseher
` (9 preceding siblings ...)
2024-11-14 11:52 ` [bug#74345] [PATCH v2 10/14] gnu: awscli-2: Add missing inputs Sharlatan Hellseher
@ 2024-11-14 11:52 ` Sharlatan Hellseher
2024-11-14 11:52 ` [bug#74345] [PATCH v2 12/14] gnu: Add python-awscrt Sharlatan Hellseher
` (2 subsequent siblings)
13 siblings, 0 replies; 30+ messages in thread
From: Sharlatan Hellseher @ 2024-11-14 11:52 UTC (permalink / raw)
To: 74345
Cc: Ricardo Wurmus, Lars-Dominik Braun, Marius Bakke,
Munyoki Kilyungi, Sharlatan Hellseher, Tanguy Le Carrour, jgart
From: Ricardo Wurmus <rekado@elephly.net>
* gnu/packages/python-web.scm (awscli-2): Update to 2.3.1.
[name]: Rename to awscliv2.
Change-Id: I5fcc7afe66490513c6769c19f961a5fcb497d422
---
gnu/packages/python-web.scm | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index a80d037bdf..32662503a1 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4200,18 +4200,20 @@ (define-public awscli
Services (AWS) API.")
(license license:asl2.0)))
+;; This is not an official release of awscli version 2, so it should not be
+;; named awscli.
(define-public awscli-2
(package
(inherit awscli)
- (name "awscli")
- (version "2.2.0")
+ (name "awscliv2")
+ (version "2.3.1")
(source
(origin
(method url-fetch)
- (uri (pypi-uri (string-append name "v2") version))
+ (uri (pypi-uri name version))
(sha256
(base32
- "0g1icsy2l4n540gnhliypy830dfp08hpfc3rk12dlxgc9v3ra4wl"))))
+ "1bpp6kmb75qdhgzsx69ki04345bfkzwnmg84y5x6nyfpph2g3fsz"))))
(arguments
;; FIXME: The 'pypi' release does not contain tests.
'(#:tests? #f))
--
2.46.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#74345] [PATCH v2 12/14] gnu: Add python-awscrt.
2024-11-14 11:52 ` [bug#74345] [PATCH v2 00/14] " Sharlatan Hellseher
` (10 preceding siblings ...)
2024-11-14 11:52 ` [bug#74345] [PATCH v2 11/14] gnu: awscli-2: Update to 2.3.1 Sharlatan Hellseher
@ 2024-11-14 11:52 ` Sharlatan Hellseher
2024-11-14 11:52 ` [bug#74345] [PATCH v2 13/14] gnu: Add python-awscrt-for-awscli Sharlatan Hellseher
2024-11-14 11:52 ` [bug#74345] [PATCH v2 14/14] gnu: Add awscli-2 Sharlatan Hellseher
13 siblings, 0 replies; 30+ messages in thread
From: Sharlatan Hellseher @ 2024-11-14 11:52 UTC (permalink / raw)
To: 74345
Cc: Ricardo Wurmus, Lars-Dominik Braun, Marius Bakke,
Munyoki Kilyungi, Sharlatan Hellseher, Tanguy Le Carrour, jgart
From: Ricardo Wurmus <rekado@elephly.net>
* gnu/packages/python-web.scm (python-awscrt): New variable.
Change-Id: I1c08a06fdb1ea9811c183d3711f092edd12cdca7
---
gnu/packages/python-web.scm | 74 +++++++++++++++++++++++++++++++++++++
1 file changed, 74 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 32662503a1..eab9a7efc5 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -100,6 +100,7 @@ (define-module (gnu packages python-web)
#:use-module (gnu packages bash)
#:use-module (gnu packages certs)
#:use-module (gnu packages check)
+ #:use-module (gnu packages cmake)
#:use-module (gnu packages compression)
#:use-module (gnu packages crates-io)
#:use-module (gnu packages crates-web)
@@ -4132,6 +4133,79 @@ (define-public python-urllib3-next
supports url redirection and retries, and also gzip and deflate decoding.")
(license license:expat)))
+(define-public python-awscrt
+ (package
+ (name "python-awscrt")
+ (version "0.23.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "awscrt" version))
+ (sha256
+ (base32 "0a669xxfmgw3g6xpcnm64pbmlrbxw5wf3jcrivixscl2glapdxgx"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-broken-tests
+ (lambda _
+ ;; Disable broken tests. These tests fail because the
+ ;; certificate bundle at the default location does not exist.
+ (substitute* "test/test_auth.py"
+ (("def test_default_provider")
+ "def _test_default_provider"))
+ (substitute* "test/test_http_client.py"
+ (("def test_h2_client")
+ "def _test_h2_client"))
+ (substitute* "test/test_s3.py"
+ (("def test_sanity")
+ "def _test_sanity")
+ (("def test_sanity_secure")
+ "def _test_sanity_secure")
+ (("def test_wait_shutdown")
+ "def _test_wait_shutdown"))))
+ (add-after 'unpack 'override-cert-bundle-location
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((bundle (search-input-file inputs
+ "/etc/ssl/certs/ca-certificates.crt")))
+ (setenv "SSL_CERT_FILE" bundle)
+ (substitute* "awscrt/io.py"
+ (("( +)opt = TlsContextOptions\\(\\)" m indent)
+ (string-append m "\n"
+ indent "import os\n"
+ indent "\
+opt.override_default_trust_store_from_path(None, os.getenv('SSL_CERT_FILE')) if os.getenv('SSL_CERT_FILE') else None\n")))
+ (substitute* "test/appexit_http.py"
+ (("( +)tls_ctx_opt = awscrt.io.TlsContextOptions.*" m indent)
+ (string-append m indent
+ "tls_ctx_opt.override_default_trust_store_from_path(None, '"
+ bundle "')\n")))
+ (substitute* "test/test_io.py"
+ (("( +)opt = TlsContextOptions\\(\\).*" m indent)
+ (string-append m indent
+ "opt.override_default_trust_store_from_path(None, '"
+ bundle "')\n"))))))
+ (add-after 'unpack 'use-system-libraries
+ (lambda _
+ (setenv "AWS_CRT_BUILD_USE_SYSTEM_LIBCRYPTO" "1")))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python3" "-m" "unittest"
+ "discover" "--verbose")))))))
+ (inputs (list openssl))
+ (native-inputs (list cmake-minimal
+ ;; For tests only
+ nss-certs-for-test
+ python-boto3
+ python-websockets))
+ (home-page "https://github.com/awslabs/aws-crt-python")
+ (synopsis "Common runtime for AWS Python projects")
+ (description
+ "This package provides a common runtime for AWS Python projects.")
+ (license license:asl2.0)))
+
(define-public awscli
(package
;; Note: updating awscli typically requires updating botocore as well.
--
2.46.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#74345] [PATCH v2 13/14] gnu: Add python-awscrt-for-awscli.
2024-11-14 11:52 ` [bug#74345] [PATCH v2 00/14] " Sharlatan Hellseher
` (11 preceding siblings ...)
2024-11-14 11:52 ` [bug#74345] [PATCH v2 12/14] gnu: Add python-awscrt Sharlatan Hellseher
@ 2024-11-14 11:52 ` Sharlatan Hellseher
2024-11-14 11:52 ` [bug#74345] [PATCH v2 14/14] gnu: Add awscli-2 Sharlatan Hellseher
13 siblings, 0 replies; 30+ messages in thread
From: Sharlatan Hellseher @ 2024-11-14 11:52 UTC (permalink / raw)
To: 74345
Cc: Ricardo Wurmus, Lars-Dominik Braun, Marius Bakke,
Munyoki Kilyungi, Sharlatan Hellseher, Tanguy Le Carrour, jgart
From: Ricardo Wurmus <rekado@elephly.net>
* gnu/packages/python-web.scm (python-awscrt-for-awscli): New variable.
Change-Id: Iea7f6467d01eee447d6605390be1066589537aae
---
gnu/packages/python-web.scm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index eab9a7efc5..d3ef984a07 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4206,6 +4206,17 @@ (define-public python-awscrt
"This package provides a common runtime for AWS Python projects.")
(license license:asl2.0)))
+(define-public python-awscrt-for-awscli
+ (package
+ (inherit python-awscrt)
+ (version "0.22.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "awscrt" version))
+ (sha256
+ (base32 "0w6pw42jbznrxh92cd97p96dg2nz698mcbfy7md3zw18jfsb18jc"))))))
+
(define-public awscli
(package
;; Note: updating awscli typically requires updating botocore as well.
--
2.46.0
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [bug#74345] [PATCH v2 14/14] gnu: Add awscli-2.
2024-11-14 11:52 ` [bug#74345] [PATCH v2 00/14] " Sharlatan Hellseher
` (12 preceding siblings ...)
2024-11-14 11:52 ` [bug#74345] [PATCH v2 13/14] gnu: Add python-awscrt-for-awscli Sharlatan Hellseher
@ 2024-11-14 11:52 ` Sharlatan Hellseher
13 siblings, 0 replies; 30+ messages in thread
From: Sharlatan Hellseher @ 2024-11-14 11:52 UTC (permalink / raw)
To: 74345
Cc: Ricardo Wurmus, Lars-Dominik Braun, Marius Bakke,
Munyoki Kilyungi, Sharlatan Hellseher, Tanguy Le Carrour, jgart
From: Ricardo Wurmus <rekado@elephly.net>
* gnu/packages/python-web.scm (awscli-2): Rename to...
(awscliv2): ...this new variable.
(awscli-2): New variable.
Change-Id: Id5c356ae0e6af53167d4acde7934f88c2f527a00
---
gnu/packages/python-web.scm | 71 ++++++++++++++++++++++++++++++++++++-
1 file changed, 70 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index d3ef984a07..bc18c282c6 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4285,9 +4285,78 @@ (define-public awscli
Services (AWS) API.")
(license license:asl2.0)))
+(define-public awscli-2
+ (package
+ (inherit awscli)
+ (name "awscli")
+ (version "2.20.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/aws/aws-cli")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0hyr9gmcfk7nzkgs0v6wgkh8k15dyhknqzfymbc9a9sa2dblc40q"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'ignore-deprecations
+ (lambda _
+ (substitute* "pyproject.toml"
+ (("\"error::") "\"ignore::"))))
+ (add-after 'unpack 'remove-pep517
+ (lambda _
+ (rename-file "backends/pep517.py" "backends/dummypep517.py")
+ (substitute* "pyproject.toml"
+ (("pep517") "dummypep517"))
+ (setenv "PYTHONPATH"
+ (string-append (getcwd) ":"
+ (getcwd) "/backends:"
+ (getenv "GUIX_PYTHONPATH")))))
+ (add-after 'unpack 'fix-reference-to-groff
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "awscli/help.py"
+ (("if self._exists_on_path\\('groff'\\):") "if True:")
+ (("cmdline = \\['groff'")
+ (string-append "cmdline = ['"
+ (search-input-file inputs "bin/groff")
+ "'")))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (substitute* "scripts/ci/run-tests"
+ (("--numprocesses=auto --dist=loadfile --maxprocesses=4") ""))
+ ;; For an unknown reason pytest receives SIGTERM and no tests
+ ;; are run..
+ #;
+ (invoke "python" "scripts/ci/run-tests")))))))
+ (inputs
+ (list groff
+ python-awscrt-for-awscli
+ python-colorama
+ python-botocore
+ python-cryptography
+ python-dateutil
+ python-docutils
+ python-jmespath
+ python-prompt-toolkit
+ python-ruamel.yaml-0.16
+ python-ruamel.yaml.clib
+ python-urllib3))
+ (native-inputs
+ (list python-distro
+ python-flit
+ python-pytest
+ python-wheel))))
+
;; This is not an official release of awscli version 2, so it should not be
;; named awscli.
-(define-public awscli-2
+(define-public awscliv2
(package
(inherit awscli)
(name "awscliv2")
--
2.46.0
^ permalink raw reply related [flat|nested] 30+ messages in thread