2021-06-15 22:55:11 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, aiohttp
|
|
|
|
, aioresponses
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2021-11-12 09:01:27 +00:00
|
|
|
, pythonOlder
|
2021-06-15 22:55:11 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bond-api";
|
2022-05-19 19:19:42 +01:00
|
|
|
version = "0.1.18";
|
2021-11-12 09:01:27 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-06-15 22:55:11 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "prystupa";
|
|
|
|
repo = "bond-api";
|
|
|
|
rev = "v${version}";
|
2022-05-19 19:19:42 +01:00
|
|
|
hash = "sha256-+87/j94eHyW3EMMBK+aXaNTVoNxsixeLusyBsPWa9yM=";
|
2021-06-15 22:55:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
aioresponses
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-11-12 09:01:27 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"bond_api"
|
|
|
|
];
|
2021-06-15 22:55:11 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Asynchronous Python wrapper library over Bond Local API";
|
|
|
|
homepage = "https://github.com/prystupa/bond-api";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|