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 , buildPythonPackage
, fetchPypi , fetchPypi
, pythonOlder , pythonOlder
, setuptools
, pytest-runner
, pytest
, pytest-asyncio
, twisted
, treq
, tornado
, aiohttp
, uritemplate , uritemplate
, pyjwt , pyjwt
, pytestCheckHook
, aiohttp
, httpx
, importlib-resources
, pytest-asyncio
, pytest-tornasync
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "gidgethub"; pname = "gidgethub";
version = "5.1.0"; version = "5.1.0";
format = "flit";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
@ -25,20 +24,25 @@ buildPythonPackage rec {
sha256 = "sha256-kNGTb6mA2XBaljYvpOWaKFEks3NigsiPgmdIgSMKTiU="; sha256 = "sha256-kNGTb6mA2XBaljYvpOWaKFEks3NigsiPgmdIgSMKTiU=";
}; };
nativeBuildInputs = [ setuptools pytest-runner ];
checkInputs = [ pytest pytest-asyncio twisted treq tornado aiohttp ];
propagatedBuildInputs = [ propagatedBuildInputs = [
uritemplate uritemplate
pyjwt pyjwt
]; ];
postPatch = '' checkInputs = [
substituteInPlace setup.py \ pytestCheckHook
--replace "extras_require=extras_require," "extras_require=None," aiohttp
''; httpx
importlib-resources
pytest-asyncio
pytest-tornasync
];
# requires network (reqests github.com) disabledTests = [
doCheck = false; # Require internet connection
"test__request"
"test_get"
];
meta = with lib; { meta = with lib; {
description = "An async GitHub API library"; description = "An async GitHub API library";

Loading…
Cancel
Save