2020-04-04 16:26:39 +01:00
|
|
|
{ stdenv
|
|
|
|
, 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";
|
2020-05-03 02:04:54 +01:00
|
|
|
version = "1.51";
|
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}";
|
2020-05-03 02:04:54 +01:00
|
|
|
hash = "sha256-8uQCFiw1ByPOX8ZRUlSLYPIibjmd19r/JtTnmQdz5cM=";
|
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;
|
|
|
|
|
2017-03-15 23:48:34 +00:00
|
|
|
meta = with stdenv.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 ];
|
|
|
|
};
|
|
|
|
}
|