python310Packages.bleak-retry-connector: init at 1.1.0

This commit is contained in:
Fabian Affolter 2022-07-28 20:53:51 +02:00
parent eff2b5ae78
commit 0901882683
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,48 @@
{ lib
, bleak
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, pytest-asyncio
}:
buildPythonPackage rec {
pname = "bleak-retry-connector";
version = "1.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
rev = "v${version}";
hash = "sha256-3d66Kp4bz+ZhiC4ZVJscI5nE+qJdsIaefrC4SM0wGP4=";
};
propagatedBuildInputs = [
bleak
];
checkInputs = [
pytest-asyncio
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=bleak_retry_connector --cov-report=term-missing:skip-covered" ""
'';
pythonImportsCheck = [
"bleak_retry_connector"
];
meta = with lib; {
description = "Connector for Bleak Clients that handles transient connection failures";
homepage = "https://github.com/bluetooth-devices/bleak-retry-connector";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -1313,6 +1313,8 @@ in {
bleak = callPackage ../development/python-modules/bleak { };
bleak-retry-connector = callPackage ../development/python-modules/bleak-retry-connector { };
blebox-uniapi = callPackage ../development/python-modules/blebox-uniapi { };
blessed = callPackage ../development/python-modules/blessed { };