My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pyGithub/default.nix

43 lines
858 B

{ lib
, buildPythonPackage
, cryptography
, deprecated
, fetchFromGitHub
, pynacl
, pyjwt
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "PyGithub";
version = "1.55";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "PyGithub";
repo = "PyGithub";
rev = "v${version}";
sha256 = "sha256-PuGCBFSbM91NtSzuyf0EQUr3LiuHDq90OwkSf53rSyA=";
};
propagatedBuildInputs = [
cryptography
deprecated
pynacl
pyjwt
requests
];
# Test suite makes REST calls against github.com
doCheck = false;
pythonImportsCheck = [ "github" ];
meta = with lib; {
description = "Python library to access the GitHub API v3";
homepage = "https://github.com/PyGithub/PyGithub";
platforms = platforms.all;
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ jhhuh ];
};
}