1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 aiohttp, 6 aioresponses, 7 orjson, 8 pytest-asyncio, 9 pytestCheckHook, 10 pythonOlder, 11}: 12 13buildPythonPackage rec { 14 pname = "bond-async"; 15 version = "0.2.1"; 16 17 disabled = pythonOlder "3.7"; 18 19 format = "setuptools"; 20 21 src = fetchFromGitHub { 22 owner = "bondhome"; 23 repo = "bond-async"; 24 tag = "v${version}"; 25 hash = "sha256-YRJHUOYFLf4dtQGIFKHLdUQxWTnZzG1MPirMsGvDor8="; 26 }; 27 28 propagatedBuildInputs = [ 29 aiohttp 30 orjson 31 ]; 32 33 nativeCheckInputs = [ 34 aioresponses 35 pytest-asyncio 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "bond_async" ]; 40 41 meta = with lib; { 42 description = "Asynchronous Python wrapper library over Bond Local API"; 43 homepage = "https://github.com/bondhome/bond-async"; 44 changelog = "https://github.com/bondhome/bond-async/releases/tag/v${version}"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ dotlambda ]; 47 }; 48}