~ruther/guix-local

3ce758f2e3ef4f60819321e32911131a54dd3d83 — Sharlatan Hellseher 4 months ago 925d10c
gnu: python-awscrt: Update to 0.26.1.

* gnu/packages/python-web.scm (python-awscrt): Update to 0.26.1.
[arguments] <test-backend>: Use 'unittest'
<test-flags>: Move her from custom 'check.
<phases>: Use default 'check.
[native-inputs]: Remove python-wheel.

Change-Id: I6020157f83bff0b51e311c715b6b5023d2ce3156
1 files changed, 6 insertions(+), 11 deletions(-)

M gnu/packages/python-web.scm
M gnu/packages/python-web.scm => gnu/packages/python-web.scm +6 -11
@@ 6298,16 6298,18 @@ supports url redirection and retries, and also gzip and deflate decoding.")
(define-public python-awscrt
  (package
    (name "python-awscrt")
    (version "0.23.0")
    (version "0.26.1")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "awscrt" version))
       (sha256
        (base32 "0a669xxfmgw3g6xpcnm64pbmlrbxw5wf3jcrivixscl2glapdxgx"))))
        (base32 "0plkc0i0gc6z8fqnyy8kbg43sv3jnv8shcavcz0wb134riykmmm8"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:test-backend #~'unittest
      #:test-flags #~(list "discover" "--verbose")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'disable-broken-tests


@@ 6350,19 6352,12 @@ opt.override_default_trust_store_from_path(None, os.getenv('SSL_CERT_FILE')) if 
                                  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")))))))
              (setenv "AWS_CRT_BUILD_USE_SYSTEM_LIBCRYPTO" "1"))))))
    (inputs (list openssl))
    (native-inputs (list cmake-minimal
                         python-setuptools
                         python-wheel
                         ;; For tests only
                         nss-certs-for-test
                         python-boto3
                         python-setuptools
                         python-websockets))
    (home-page "https://github.com/awslabs/aws-crt-python")
    (synopsis "Common runtime for AWS Python projects")