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