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