2ce89355c3
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
49 lines
991 B
Nix
49 lines
991 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, setuptools
|
|
, pytestrunner
|
|
, pytest
|
|
, pytest-asyncio
|
|
, twisted
|
|
, treq
|
|
, tornado
|
|
, aiohttp
|
|
, uritemplate
|
|
, pyjwt
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gidgethub";
|
|
version = "4.1.1";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "cfabfa696d422ee91eaf1e3f01ea75e576721233cc3ea8badc7d86c30061df8e";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools pytestrunner ];
|
|
checkInputs = [ pytest pytest-asyncio twisted treq tornado aiohttp ];
|
|
propagatedBuildInputs = [
|
|
uritemplate
|
|
pyjwt
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "extras_require=extras_require," "extras_require=None,"
|
|
'';
|
|
|
|
# requires network (reqests github.com)
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "An async GitHub API library";
|
|
homepage = "https://github.com/brettcannon/gidgethub";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.costrouc ];
|
|
};
|
|
}
|