python3Packages.gidgethub: set format to flit

main
P. R. d. O 2 years ago
parent 288c3c6fbc
commit 95e6d4f763
No known key found for this signature in database
GPG Key ID: 7B0FF33FF90110C7
  1. 36
      pkgs/development/python-modules/gidgethub/default.nix

@ -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…
Cancel
Save