mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
b9c58de183
Diff: https://github.com/Bluetooth-Devices/bleak-retry-connector/compare/refs/tags/v3.1.3...v3.2.1 Changelog: https://github.com/bluetooth-devices/bleak-retry-connector/blob/v3.2.1/CHANGELOG.md
68 lines
1.5 KiB
Nix
68 lines
1.5 KiB
Nix
{ lib
|
|
, async-timeout
|
|
, bleak
|
|
, bluetooth-adapters
|
|
, dbus-fast
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pytest-asyncio
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bleak-retry-connector";
|
|
version = "3.2.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Bluetooth-Devices";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-3dftk/C6g6Hclc/N8LlsYcZfxA1I6bMiXkzRcUg69Oc=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace " --cov=bleak_retry_connector --cov-report=term-missing:skip-covered" ""
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
async-timeout
|
|
bleak
|
|
bluetooth-adapters
|
|
dbus-fast
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# broken mocking
|
|
"test_establish_connection_can_cache_services_services_missing"
|
|
"test_establish_connection_with_dangerous_use_cached_services"
|
|
"test_establish_connection_without_dangerous_use_cached_services"
|
|
];
|
|
|
|
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";
|
|
changelog = "https://github.com/bluetooth-devices/bleak-retry-connector/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|