1{ 2 lib, 3 buildPythonPackage, 4 deprecated, 5 fetchFromGitHub, 6 pynacl, 7 typing-extensions, 8 pyjwt, 9 pythonOlder, 10 requests, 11 setuptools, 12 setuptools-scm, 13 urllib3, 14}: 15 16buildPythonPackage rec { 17 pname = "pygithub"; 18 version = "2.6.1"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.8"; 22 23 src = fetchFromGitHub { 24 owner = "PyGithub"; 25 repo = "PyGithub"; 26 tag = "v${version}"; 27 hash = "sha256-CfAgN5vxHbVyDSeP0KR1QFnL6gDQsd46Q0zosr0ALqM="; 28 }; 29 30 build-system = [ 31 setuptools 32 setuptools-scm 33 ]; 34 35 dependencies = [ 36 deprecated 37 pyjwt 38 pynacl 39 requests 40 typing-extensions 41 urllib3 42 ] ++ pyjwt.optional-dependencies.crypto; 43 44 # Test suite makes REST calls against github.com 45 doCheck = false; 46 47 pythonImportsCheck = [ "github" ]; 48 49 meta = with lib; { 50 description = "Python library to access the GitHub API v3"; 51 homepage = "https://github.com/PyGithub/PyGithub"; 52 changelog = "https://github.com/PyGithub/PyGithub/raw/${src.tag}/doc/changes.rst"; 53 license = licenses.lgpl3Plus; 54 maintainers = [ ]; 55 }; 56}