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