Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions pkgs/development/python-modules/bleak/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
pythonOlder,

# build-system
poetry-core,
uv-build,

# dependencies
bumble,
Expand All @@ -24,18 +24,19 @@

buildPythonPackage rec {
pname = "bleak";
version = "2.1.1";
version = "3.0.2";
pyproject = true;

src = fetchFromGitHub {
owner = "hbldh";
repo = "bleak";
tag = "v${version}";
hash = "sha256-zplCwm0LxDTbNvjWK6VYEFe0Azd2ginkoPZpV7Tpv20=";
hash = "sha256-I+nN3/KKF0PC9TO8SULXX1oOGUokYa2tlPVfEJ/0mbY=";
};

postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "uv_build>=0.10.9,<0.11.0" "uv_build" \
--replace-fail "ignore:Couldn't import C tracer:coverage.exceptions.CoverageWarning" ""
''
# bleak checks BlueZ's version with a call to `bluetoothctl --version`
Expand All @@ -46,7 +47,7 @@ buildPythonPackage rec {
'"${lib.getExe' bluez "bluetoothctl"}"'
'';

build-system = [ poetry-core ];
build-system = [ uv-build ];

dependencies = [
]
Expand Down Expand Up @@ -77,6 +78,6 @@ buildPythonPackage rec {
changelog = "https://github.com/hbldh/bleak/blob/${src.tag}/CHANGELOG.rst";
license = lib.licenses.mit;
platforms = lib.platforms.linux ++ lib.platforms.darwin;
maintainers = [ ];
maintainers = with lib.maintainers; [ rhendric ];
};
}
Loading