gnu: python-pygithub: Update to 1.54.1.
* gnu/packages/python-xyz.scm (python-pygithub): Update to 1.54.1. [arguments]: Remove 'disable-failing-tests, 'prepare-for-tests phases. Add custom 'check phase. [propagated-inputs]: Add python-cryptography. [native-inputs]: Add python-httpretty, python-pytest.
This commit is contained in:
parent
9a75728318
commit
c721e00ef1
|
@ -3815,7 +3815,7 @@ (define-public python-deprecated
|
||||||
(define-public python-pygithub
|
(define-public python-pygithub
|
||||||
(package
|
(package
|
||||||
(name "python-pygithub")
|
(name "python-pygithub")
|
||||||
(version "1.43.8")
|
(version "1.54.1")
|
||||||
(source
|
(source
|
||||||
;; We fetch from the Git repo because there are no tests in the PyPI
|
;; We fetch from the Git repo because there are no tests in the PyPI
|
||||||
;; archive.
|
;; archive.
|
||||||
|
@ -3826,30 +3826,24 @@ (define-public python-pygithub
|
||||||
(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 "1625v558xga5mwhl9jqmibywy5qafmg1vqrirqz6zfq1la1d22mw"))))
|
(base32 "1nl74bp5ikdnrc8xq0qr25ryl1mvarf0xi43k8w5jzlrllhq0nkq"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases (modify-phases %standard-phases
|
`(#:phases
|
||||||
;; Some tests rely on the network.
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'disable-failing-tests
|
(replace 'check
|
||||||
(lambda _
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
(substitute* "tests/Issue142.py"
|
(when tests?
|
||||||
(("testDecodeJson") "disabled_testDecodeJson"))
|
(invoke "pytest"))
|
||||||
#t))
|
#t)))))
|
||||||
(add-before 'check 'prepare-for-tests
|
|
||||||
(lambda _
|
|
||||||
(for-each (lambda (f)
|
|
||||||
(chmod f #o666))
|
|
||||||
(find-files "./tests"))
|
|
||||||
(system* "python" "-m" "lib2to3" "-w" "-n" "tests")
|
|
||||||
(setenv "PYTHONPATH"
|
|
||||||
(string-append "./tests:" (getenv "PYTHONPATH")))
|
|
||||||
#t)))))
|
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python-deprecated" ,python-deprecated)
|
`(("python-cryptography" ,python-cryptography)
|
||||||
|
("python-deprecated" ,python-deprecated)
|
||||||
("python-pyjwt" ,python-pyjwt)
|
("python-pyjwt" ,python-pyjwt)
|
||||||
("python-requests" ,python-requests)))
|
("python-requests" ,python-requests)))
|
||||||
(native-inputs `(("python-httpretty" ,python-httpretty)))
|
(native-inputs
|
||||||
|
`(("python-httpretty" ,python-httpretty)
|
||||||
|
("python-pytest" ,python-pytest)))
|
||||||
(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
|
||||||
|
|
Loading…
Reference in a new issue