Archived
1
0
Fork 0

gnu: streamlink: Update to 6.3.1.

* gnu/packages/video.scm (streamlink): Update to 6.3.1.
[source]: Add snippet to accept older versions of python-trio.
[native-inputs]: Remove python-mock.  Add python-pytest-asyncio,
python-pytest-trio.
[propagated-inputs]: Add python-trio, python-trio-websocket,
python-typing-websockets.

Change-Id: Ib3e8930ed73974ddad4deb7015049b96c925b656
This commit is contained in:
Efraim Flashner 2023-11-06 09:55:00 +02:00
parent be46ab7a91
commit d52ee267ee
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -179,6 +179,7 @@
#:use-module (gnu packages pulseaudio) #:use-module (gnu packages pulseaudio)
#:use-module (gnu packages python) #:use-module (gnu packages python)
#:use-module (gnu packages python-build) #:use-module (gnu packages python-build)
#:use-module (gnu packages python-check)
#:use-module (gnu packages python-crypto) #:use-module (gnu packages python-crypto)
#:use-module (gnu packages python-web) #:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz) #:use-module (gnu packages python-xyz)
@ -3272,33 +3273,45 @@ and custom quantization matrices.")
(define-public streamlink (define-public streamlink
(package (package
(name "streamlink") (name "streamlink")
(version "3.2.0") (version "6.3.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "streamlink" version)) (uri (pypi-uri "streamlink" version))
(sha256 (sha256
(base32 (base32
"09nrspga15svzi0hmakcarbciav0nzf30hg1ff53gia473cd4w4p")))) "0i2qym2plm4gpcq50vl67j69m8a4zz9mb8gi2xryx28pbnpdzh4k"))
(snippet
#~(begin (use-modules (guix build utils))
(substitute* "pyproject.toml"
(("trio >=0\\.22") "trio >=0.21"))))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases (modify-phases %standard-phases `(#:phases
(modify-phases %standard-phases
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(invoke "python" "-m" "pytest"))))))) (invoke "python" "-m" "pytest")))))))
(native-inputs (native-inputs
(list python-freezegun python-mock python-pytest (list python-freezegun
python-requests-mock)) python-requests-mock
python-pytest
python-pytest-asyncio
python-pytest-trio))
(propagated-inputs (propagated-inputs
(list python-pysocks (list python-certifi
python-websocket-client
python-isodate python-isodate
python-lxml python-lxml
python-pycountry python-pycountry
python-pycryptodome python-pycryptodome
python-pysocks
python-requests python-requests
python-urllib3)) python-trio
python-trio-websocket
python-typing-extensions
python-urllib3
python-websocket-client))
(home-page "https://github.com/streamlink/streamlink") (home-page "https://github.com/streamlink/streamlink")
(synopsis "Extract streams from various services") (synopsis "Extract streams from various services")
(description "Streamlink is command-line utility that extracts streams (description "Streamlink is command-line utility that extracts streams