Merge pull request #172405 from WolfangAukang/gidgethub-fix
python3Packages.gidgethub: set format to flit
This commit is contained in:
commit
6dd9e8ea48
@ -2,21 +2,20 @@
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
, pytest-runner
|
||||
, pytest
|
||||
, pytest-asyncio
|
||||
, twisted
|
||||
, treq
|
||||
, tornado
|
||||
, aiohttp
|
||||
, uritemplate
|
||||
, pyjwt
|
||||
, pytestCheckHook
|
||||
, aiohttp
|
||||
, httpx
|
||||
, importlib-resources
|
||||
, pytest-asyncio
|
||||
, pytest-tornasync
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gidgethub";
|
||||
version = "5.1.0";
|
||||
format = "flit";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
@ -25,20 +24,25 @@ buildPythonPackage rec {
|
||||
sha256 = "sha256-kNGTb6mA2XBaljYvpOWaKFEks3NigsiPgmdIgSMKTiU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools pytest-runner ];
|
||||
checkInputs = [ pytest pytest-asyncio twisted treq tornado aiohttp ];
|
||||
propagatedBuildInputs = [
|
||||
uritemplate
|
||||
pyjwt
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "extras_require=extras_require," "extras_require=None,"
|
||||
'';
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
aiohttp
|
||||
httpx
|
||||
importlib-resources
|
||||
pytest-asyncio
|
||||
pytest-tornasync
|
||||
];
|
||||
|
||||
# requires network (reqests github.com)
|
||||
doCheck = false;
|
||||
disabledTests = [
|
||||
# Require internet connection
|
||||
"test__request"
|
||||
"test_get"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "An async GitHub API library";
|
||||
|
Loading…
Reference in New Issue
Block a user