mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:13:33 +00:00
50 lines
991 B
Nix
50 lines
991 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, setuptools
|
|
, pytestrunner
|
|
, pytest
|
|
, pytest-asyncio
|
|
, twisted
|
|
, treq
|
|
, tornado
|
|
, aiohttp
|
|
, uritemplate
|
|
, pyjwt
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gidgethub";
|
|
version = "5.0.0";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a4a8d8b1ab629757b557d3bcb98a5a77790a3d00b320f5f881a1754cf0e21086";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|