1{ lib 2, buildPythonPackage 3, cryptography 4, deprecated 5, fetchFromGitHub 6, pynacl 7, pyjwt 8, pythonOlder 9, requests 10}: 11 12buildPythonPackage rec { 13 pname = "PyGithub"; 14 version = "1.57"; 15 format = "setuptools"; 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "PyGithub"; 20 repo = "PyGithub"; 21 rev = "refs/tags/v${version}"; 22 sha256 = "sha256-7CNvSOwDXXcJ082/Fmgr6OtTQeA30yDjt/Oq2nx4vEk="; 23 }; 24 25 propagatedBuildInputs = [ 26 cryptography 27 deprecated 28 pynacl 29 pyjwt 30 requests 31 ]; 32 33 # Test suite makes REST calls against github.com 34 doCheck = false; 35 pythonImportsCheck = [ "github" ]; 36 37 meta = with lib; { 38 description = "Python library to access the GitHub API v3"; 39 homepage = "https://github.com/PyGithub/PyGithub"; 40 changelog = "https://github.com/PyGithub/PyGithub/raw/v${version}/doc/changes.rst"; 41 license = licenses.lgpl3Plus; 42 maintainers = with maintainers; [ jhhuh ]; 43 }; 44}