1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchFromGitHub 5, fetchpatch 6, pytest-aiohttp 7, pytestCheckHook 8, pythonOlder 9, webtest 10}: 11 12buildPythonPackage rec { 13 pname = "webtest-aiohttp"; 14 version = "2.0.0"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "sloria"; 21 repo = pname; 22 rev = version; 23 hash = "sha256-UuAz/k/Tnumupv3ybFR7PkYHwG3kH7M5oobZykEP+ao="; 24 }; 25 26 patches = [ 27 (fetchpatch { 28 name = "python311-compat.patch"; 29 url = "https://github.com/sloria/webtest-aiohttp/commit/64e5ab1867ea9ef87901bb2a1a6142566bffc90b.patch"; 30 hash = "sha256-OKJGajqJLFMkcbGmGfU9G5hCpJaj24Gs363sI0z7YZw="; 31 }) 32 ]; 33 34 propagatedBuildInputs = [ 35 webtest 36 ]; 37 38 nativeCheckInputs = [ 39 aiohttp 40 pytest-aiohttp 41 pytestCheckHook 42 ]; 43 44 pythonImportsCheck = [ 45 "webtest_aiohttp" 46 ]; 47 48 meta = with lib; { 49 changelog = "https://github.com/sloria/webtest-aiohttp/blob/${src.rev}/CHANGELOG.rst"; 50 description = "Provides integration of WebTest with aiohttp.web applications"; 51 homepage = "https://github.com/sloria/webtest-aiohttp"; 52 license = licenses.mit; 53 maintainers = with maintainers; [ cript0nauta ]; 54 }; 55}