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