at master 1.1 kB view raw
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.8.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-36taxa95WrpQw0UUlmnWX4XFslAAuuoousxNh5O5uDA="; 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 ] 43 ++ pyjwt.optional-dependencies.crypto; 44 45 # Test suite makes REST calls against github.com 46 doCheck = false; 47 48 pythonImportsCheck = [ "github" ]; 49 50 meta = with lib; { 51 description = "Python library to access the GitHub API v3"; 52 homepage = "https://github.com/PyGithub/PyGithub"; 53 changelog = "https://github.com/PyGithub/PyGithub/raw/${src.tag}/doc/changes.rst"; 54 license = licenses.lgpl3Plus; 55 maintainers = [ ]; 56 }; 57}