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

39 lines
893 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
, cryptography
, deprecated
, fetchFromGitHub
, httpretty
, isPy3k
, parameterized
, pyjwt
, pytestCheckHook
, requests }:
2017-03-15 23:48:34 +00:00
buildPythonPackage rec {
pname = "PyGithub";
version = "1.47";
disabled = !isPy3k;
2017-03-15 23:48:34 +00:00
src = fetchFromGitHub {
owner = "PyGithub";
repo = "PyGithub";
rev = "v${version}";
sha256 = "0zvp1gib2lryw698vxkbdv40n3lsmdlhwp7vdcg41dqqa5nfryhn";
2017-03-15 23:48:34 +00:00
};
checkInputs = [ httpretty parameterized pytestCheckHook ];
propagatedBuildInputs = [ cryptography deprecated pyjwt requests ];
# Test suite makes REST calls against github.com
doCheck = false;
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 ];
};
}