nixpkgs/pkgs/development/python-modules/pyGithub/default.nix

44 lines
858 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, cryptography
, deprecated
, fetchFromGitHub
2021-04-27 12:18:05 +01:00
, pynacl
, pyjwt
2021-04-27 12:18:05 +01:00
, pythonOlder
, requests
}:
2017-03-15 23:48:34 +00:00
buildPythonPackage rec {
pname = "PyGithub";
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}";
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
];
# Test suite makes REST calls against github.com
doCheck = false;
2021-04-27 12:18:05 +01:00
pythonImportsCheck = [ "github" ];
meta = with lib; {
2021-04-27 12:18:05 +01:00
description = "Python library to access the GitHub API v3";
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 ];
};
}