From 95e6d4f76359dce39c436753fc807bef78ca4ffb Mon Sep 17 00:00:00 2001 From: "P. R. d. O" Date: Tue, 10 May 2022 16:59:26 -0600 Subject: [PATCH] python3Packages.gidgethub: set format to flit --- .../python-modules/gidgethub/default.nix | 36 ++++++++++--------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/gidgethub/default.nix b/pkgs/development/python-modules/gidgethub/default.nix index 9d1fdc07d90..327672bad1b 100644 --- a/pkgs/development/python-modules/gidgethub/default.nix +++ b/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";