Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 75 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576{ lib, aioesphomeapi, bleak, bleak-retry-connector, bluetooth-data-tools, buildPythonPackage, cython, fetchFromGitHub, habluetooth, lru-dict, poetry-core, pytest-asyncio, pytest-codspeed, pytest-cov-stub, pytestCheckHook, setuptools,}:
buildPythonPackage rec { pname = "bleak-esphome"; version = "3.1.0"; pyproject = true;
src = fetchFromGitHub { owner = "bluetooth-devices"; repo = "bleak-esphome"; tag = "v${version}"; hash = "sha256-L2/DtT1vEkP67oktLNix+/+eoVbJoMfUvW6232gSMCM="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "setuptools>=75.8.2" setuptools '';
build-system = [ cython poetry-core setuptools ];
dependencies = [ aioesphomeapi bleak bleak-retry-connector bluetooth-data-tools habluetooth lru-dict ];
nativeCheckInputs = [ pytest-asyncio pytest-codspeed pytest-cov-stub pytestCheckHook ];
disabledTests = [ # bleak_client.services.get_characteristic returns None "test_client_get_services_and_read_write" "test_bleak_client_get_services_and_read_write" "test_bleak_client_cached_get_services_and_read_write" ];
pythonImportsCheck = [ "bleak_esphome" ];
meta = with lib; { description = "Bleak backend of ESPHome"; homepage = "https://github.com/bluetooth-devices/bleak-esphome"; changelog = "https://github.com/bluetooth-devices/bleak-esphome/blob/${src.tag}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };}