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

30 lines
745 B
Nix
Raw Normal View History

2017-03-15 23:48:34 +00:00
{ stdenv, fetchFromGitHub
, cacert
, buildPythonPackage, python-jose }:
buildPythonPackage rec {
pname = "PyGithub";
2017-03-15 23:48:34 +00:00
version = "1.32";
name = pname + "-" + version;
2017-03-15 23:48:34 +00:00
src = fetchFromGitHub {
owner = "PyGithub";
repo = "PyGithub";
rev = "v${version}";
sha256 = "15dr9ja63zdxax9lg6q2kcakqa82dpffyhgpjr13wq3sfkcy5pdw";
};
postPatch = ''
# requires network
echo "" > github/tests/Issue142.py
'';
propagatedBuildInputs = [ python-jose ];
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 ];
};
}