summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyGithub/default.nix
blob: 45887bdc748df02ab142cf9673c2547b9a31d1ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchFromGitHub
, cacert
, buildPythonPackage, python-jose }:

buildPythonPackage rec {
  name = "PyGithub-${version}";
  version = "1.32";

  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;
    description = "A Python (2 and 3) library to access the GitHub API v3";
    platforms = platforms.all;
    license = licenses.gpl3;
    maintainers = with maintainers; [ jhhuh ];
  };
}