2017-03-15 23:48:34 +00:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
, cacert
|
2018-02-21 13:11:48 +00:00
|
|
|
, buildPythonPackage, python-jose, pyjwt }:
|
2017-03-15 23:48:34 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "PyGithub";
|
2018-02-21 13:11:48 +00:00
|
|
|
version = "1.36";
|
2017-11-09 11:26:09 +00:00
|
|
|
name = pname + "-" + version;
|
2017-03-15 23:48:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PyGithub";
|
|
|
|
repo = "PyGithub";
|
|
|
|
rev = "v${version}";
|
2018-02-21 13:11:48 +00:00
|
|
|
sha256 = "0yb74f9hg2vdsy766m850hfb1ss17lbgcdvvklm4qf72w12nxc5w";
|
2017-03-15 23:48:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# requires network
|
|
|
|
echo "" > github/tests/Issue142.py
|
|
|
|
'';
|
2018-02-21 13:11:48 +00:00
|
|
|
propagatedBuildInputs = [ python-jose pyjwt ];
|
2017-03-15 23:48:34 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/PyGithub/PyGithub;
|
2017-03-15 23:48:34 +00:00
|
|
|
description = "A Python (2 and 3) library to access the GitHub API v3";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ jhhuh ];
|
|
|
|
};
|
|
|
|
}
|