1{ stdenv, fetchFromGitHub
2, buildPythonPackage, python-jose, pyjwt }:
3
4buildPythonPackage rec {
5 pname = "PyGithub";
6 version = "1.36";
7 name = pname + "-" + version;
8
9 src = fetchFromGitHub {
10 owner = "PyGithub";
11 repo = "PyGithub";
12 rev = "v${version}";
13 sha256 = "0yb74f9hg2vdsy766m850hfb1ss17lbgcdvvklm4qf72w12nxc5w";
14 };
15
16 postPatch = ''
17 # requires network
18 echo "" > github/tests/Issue142.py
19 '';
20 propagatedBuildInputs = [ python-jose pyjwt ];
21 meta = with stdenv.lib; {
22 homepage = https://github.com/PyGithub/PyGithub;
23 description = "A Python (2 and 3) library to access the GitHub API v3";
24 platforms = platforms.all;
25 license = licenses.gpl3;
26 maintainers = with maintainers; [ jhhuh ];
27 };
28}