mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
d20a62ae85
Upstream dropped python2 support in 1.45, so the `nixpkgs-update` bot has not been successful in bumping it. While this still does not run the test suite, it gets us closer.
39 lines
893 B
Nix
39 lines
893 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, deprecated
|
|
, fetchFromGitHub
|
|
, httpretty
|
|
, isPy3k
|
|
, parameterized
|
|
, pyjwt
|
|
, pytestCheckHook
|
|
, requests }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "PyGithub";
|
|
version = "1.47";
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PyGithub";
|
|
repo = "PyGithub";
|
|
rev = "v${version}";
|
|
sha256 = "0zvp1gib2lryw698vxkbdv40n3lsmdlhwp7vdcg41dqqa5nfryhn";
|
|
};
|
|
|
|
checkInputs = [ httpretty parameterized pytestCheckHook ];
|
|
propagatedBuildInputs = [ cryptography deprecated pyjwt requests ];
|
|
|
|
# Test suite makes REST calls against github.com
|
|
doCheck = false;
|
|
|
|
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 ];
|
|
};
|
|
}
|