2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, cryptography
|
|
|
|
, deprecated
|
|
|
|
, fetchFromGitHub
|
|
|
|
, httpretty
|
|
|
|
, isPy3k
|
|
|
|
, parameterized
|
|
|
|
, pyjwt
|
|
|
|
, pytestCheckHook
|
|
|
|
, requests }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "PyGithub";
|
2020-05-15 21:57:56 +00:00
|
|
|
version = "1.51";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PyGithub";
|
|
|
|
repo = "PyGithub";
|
|
|
|
rev = "v${version}";
|
2020-06-02 18:00:15 +00:00
|
|
|
sha256 = "1hz5fc3rkryl4vzxmmwx75p25wk0ida54lf6bz7261rm5hb05r7j";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ httpretty parameterized pytestCheckHook ];
|
|
|
|
propagatedBuildInputs = [ cryptography deprecated pyjwt requests ];
|
|
|
|
|
|
|
|
# Test suite makes REST calls against github.com
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/PyGithub/PyGithub";
|
|
|
|
description = "A Python (2 and 3) library to access the GitHub API v3";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ jhhuh ];
|
|
|
|
};
|
|
|
|
}
|