gnu: python-pygithub: Update to 2.8.1.

* gnu/packages/python-xyz.scm (python-pygithub): Update to 2.8.1.
[arguments]<#:phases>: Remove 'check phase replacement, add phase 'set-version.
[propagated-inputs]: Add python-typing-extensions,
python-urllib3. Remove python-cryptography.
[native-inputs]: Add python-responses, python-setuptools,
python-setuptools-scm.

Change-Id: I047f053d24b46d4697904101697de0a52a4ba5c9
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-09-20 18:11:40 +02:00 committed by Sharlatan Hellseher
parent 39208be4bd
commit 7daad3f5f0
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -9179,10 +9179,8 @@ to deprecate classes, functions or methods.")
(define-public python-pygithub (define-public python-pygithub
(package (package
(name "python-pygithub") (name "python-pygithub")
(version "1.55") (version "2.8.1")
(source (source
;; We fetch from the Git repo because there are no tests in the PyPI
;; archive.
(origin (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@ -9190,21 +9188,26 @@ to deprecate classes, functions or methods.")
(commit (string-append "v" version)))) (commit (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "082bxffpy4h97dsay3l75cpgfjj10kywkvicnm6xscwvah285q9y")))) (base32 "0c5qp69qfkfcp8lfmfh0a2rcb1azsrlrc525qd8blnkrmz2mmayz"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:phases
(replace 'check #~(modify-phases %standard-phases
(lambda* (#:key tests? #:allow-other-keys) (add-after 'unpack 'set-version
(when tests? (lambda _
(invoke "pytest")) (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
#t)))))
(propagated-inputs (propagated-inputs
(list python-cryptography python-deprecated python-pyjwt (list python-pyjwt
python-pynacl python-requests)) python-pynacl
python-requests
python-typing-extensions
python-urllib3))
(native-inputs (native-inputs
(list nss-certs-for-test python-httpretty python-pytest)) (list python-responses
python-pytest
python-setuptools
python-setuptools-scm))
(home-page "https://pygithub.readthedocs.io/en/latest/") (home-page "https://pygithub.readthedocs.io/en/latest/")
(synopsis "Python library for the GitHub API") (synopsis "Python library for the GitHub API")
(description "This library allows managing GitHub resources such as (description "This library allows managing GitHub resources such as