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

30 lines
758 B
Nix
Raw Normal View History

2017-03-16 00:48:34 +01:00
{ stdenv, fetchFromGitHub
, cacert
2018-02-21 14:11:48 +01:00
, buildPythonPackage, python-jose, pyjwt }:
2017-03-16 00:48:34 +01:00
buildPythonPackage rec {
pname = "PyGithub";
2018-02-21 14:11:48 +01:00
version = "1.36";
name = pname + "-" + version;
2017-03-16 00:48:34 +01:00
src = fetchFromGitHub {
owner = "PyGithub";
repo = "PyGithub";
rev = "v${version}";
2018-02-21 14:11:48 +01:00
sha256 = "0yb74f9hg2vdsy766m850hfb1ss17lbgcdvvklm4qf72w12nxc5w";
2017-03-16 00:48:34 +01:00
};
postPatch = ''
# requires network
echo "" > github/tests/Issue142.py
'';
2018-02-21 14:11:48 +01:00
propagatedBuildInputs = [ python-jose pyjwt ];
2017-03-16 00:48:34 +01:00
meta = with stdenv.lib; {
homepage = https://github.com/PyGithub/PyGithub;
2017-03-16 00:48:34 +01:00
description = "A Python (2 and 3) library to access the GitHub API v3";
platforms = platforms.all;
license = licenses.gpl3;
maintainers = with maintainers; [ jhhuh ];
};
}