2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-04-04 16:26:39 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, cryptography
|
|
|
|
, deprecated
|
|
|
|
, fetchFromGitHub
|
|
|
|
, httpretty
|
|
|
|
, isPy3k
|
|
|
|
, parameterized
|
|
|
|
, pyjwt
|
|
|
|
, pytestCheckHook
|
|
|
|
, requests }:
|
2017-03-15 23:48:34 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "PyGithub";
|
2021-01-08 16:47:18 +00:00
|
|
|
version = "1.54.1";
|
2020-04-04 16:26:39 +01:00
|
|
|
disabled = !isPy3k;
|
2017-03-15 23:48:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PyGithub";
|
|
|
|
repo = "PyGithub";
|
|
|
|
rev = "v${version}";
|
2021-01-08 16:47:18 +00:00
|
|
|
sha256 = "1nl74bp5ikdnrc8xq0qr25ryl1mvarf0xi43k8w5jzlrllhq0nkq";
|
2017-03-15 23:48:34 +00:00
|
|
|
};
|
|
|
|
|
2020-04-04 16:26:39 +01:00
|
|
|
checkInputs = [ httpretty parameterized pytestCheckHook ];
|
|
|
|
propagatedBuildInputs = [ cryptography deprecated pyjwt requests ];
|
|
|
|
|
|
|
|
# Test suite makes REST calls against github.com
|
2019-07-22 12:57:04 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-04 16:26:39 +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 ];
|
|
|
|
};
|
|
|
|
}
|