From ab380b196e1461c0bc834c4db7f18d22560ccf59 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Mon, 1 Apr 2019 22:39:43 -0400 Subject: [PATCH 4/8] gnu: Add python-pygithub. * gnu/packages/python-xyz.scm (python-pygithub): New variable. --- gnu/packages/python-xyz.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 115cfa84ab..d447e5c1d9 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -2683,6 +2683,37 @@ software version simply.") to deprecate classes, functions or methods.") (license license:expat))) +(define-public python-pygithub + (package + (name "python-pygithub") + (version "1.43.5") + (source + (origin + (method url-fetch) + (uri (pypi-uri "PyGithub" version)) + (sha256 + (base32 + "0wj8hs14jsds6y8jrbpfiavv603svc4k2cf100wr9ql37as04c96")))) + (build-system python-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + ;; Some tests rely on the network. + (add-after 'unpack 'disable-failing-tests + (lambda _ + (substitute* "github/tests/Issue142.py" + (("testDecodeJson") "disabled_testDecodeJson")) + #t))))) + (propagated-inputs + `(("python-deprecated" ,python-deprecated) + ("python-pyjwt" ,python-pyjwt) + ("python-requests" ,python-requests))) + (home-page "https://pygithub.readthedocs.io/en/latest/") + (synopsis "Python library for the GitHub API") + (description "This library allows managing GitHub resources such as +repositories, user profiles, and organizations in your Python applications, +using version 3 of the GitHub application programming interface (API).") + (license license:lgpl3+))) + (define-public python-scp (package (name "python-scp") -- 2.20.1