1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 14:41:17 +00:00
nixpkgs/pkgs/development/python-modules/pyGithub/default.nix

29 lines
749 B
Nix
Raw Normal View History

2017-03-15 23:48:34 +00:00
{ stdenv, fetchFromGitHub
2018-02-21 13:11:48 +00:00
, buildPythonPackage, python-jose, pyjwt }:
2017-03-15 23:48:34 +00:00
buildPythonPackage rec {
pname = "PyGithub";
2018-02-21 13:11:48 +00:00
version = "1.36";
name = pname + "-" + version;
2017-03-15 23:48:34 +00:00
src = fetchFromGitHub {
owner = "PyGithub";
repo = "PyGithub";
rev = "v${version}";
2018-02-21 13:11:48 +00:00
sha256 = "0yb74f9hg2vdsy766m850hfb1ss17lbgcdvvklm4qf72w12nxc5w";
2017-03-15 23:48:34 +00:00
};
postPatch = ''
# requires network
echo "" > github/tests/Issue142.py
'';
2018-02-21 13:11:48 +00:00
propagatedBuildInputs = [ python-jose pyjwt ];
2017-03-15 23:48:34 +00:00
meta = with stdenv.lib; {
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 ];
};
}