2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2020-04-04 16:26:39 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, cryptography
|
|
|
|
, deprecated
|
|
|
|
, fetchFromGitHub
|
2021-04-27 12:18:05 +01:00
|
|
|
, pynacl
|
2020-04-04 16:26:39 +01:00
|
|
|
, pyjwt
|
2021-04-27 12:18:05 +01:00
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
}:
|
2017-03-15 23:48:34 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "PyGithub";
|
2021-04-27 09:00:24 +01:00
|
|
|
version = "1.55";
|
2021-04-27 12:18:05 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2017-03-15 23:48:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PyGithub";
|
|
|
|
repo = "PyGithub";
|
|
|
|
rev = "v${version}";
|
2021-04-27 09:00:24 +01:00
|
|
|
sha256 = "sha256-PuGCBFSbM91NtSzuyf0EQUr3LiuHDq90OwkSf53rSyA=";
|
2017-03-15 23:48:34 +00:00
|
|
|
};
|
|
|
|
|
2021-04-27 12:18:05 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography
|
|
|
|
deprecated
|
|
|
|
pynacl
|
|
|
|
pyjwt
|
|
|
|
requests
|
|
|
|
];
|
2020-04-04 16:26:39 +01:00
|
|
|
|
|
|
|
# Test suite makes REST calls against github.com
|
2019-07-22 12:57:04 +01:00
|
|
|
doCheck = false;
|
2021-04-27 12:18:05 +01:00
|
|
|
pythonImportsCheck = [ "github" ];
|
2019-07-22 12:57:04 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-04-27 12:18:05 +01:00
|
|
|
description = "Python library to access the GitHub API v3";
|
2020-04-04 16:26:39 +01:00
|
|
|
homepage = "https://github.com/PyGithub/PyGithub";
|
2017-03-15 23:48:34 +00:00
|
|
|
platforms = platforms.all;
|
2021-04-27 12:18:05 +01:00
|
|
|
license = licenses.lgpl3Plus;
|
2017-03-15 23:48:34 +00:00
|
|
|
maintainers = with maintainers; [ jhhuh ];
|
|
|
|
};
|
|
|
|
}
|