@@ -0,0 +1,28 @@
1+{ stdenv, fetchFromGitHub
2+, cacert
3+, buildPythonPackage, python-jose }:
4+
5+buildPythonPackage rec {
6+ name = "PyGithub-${version}";
7+ version = "1.32";
8+
9+ src = fetchFromGitHub {
10+ owner = "PyGithub";
11+ repo = "PyGithub";
12+ rev = "v${version}";
13+ sha256 = "15dr9ja63zdxax9lg6q2kcakqa82dpffyhgpjr13wq3sfkcy5pdw";
14+ };
15+
16+ postPatch = ''
17+ # requires network
18+ echo "" > github/tests/Issue142.py
19+ '';
20+ propagatedBuildInputs = [ python-jose ];
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+}