diff options
Diffstat (limited to 'pkgs/development/python-modules/habluetooth/default.nix')
-rw-r--r-- | pkgs/development/python-modules/habluetooth/default.nix | 51 |
1 files changed, 25 insertions, 26 deletions
diff --git a/pkgs/development/python-modules/habluetooth/default.nix b/pkgs/development/python-modules/habluetooth/default.nix index e84fa94ae0c12..4a1f28a60b432 100644 --- a/pkgs/development/python-modules/habluetooth/default.nix +++ b/pkgs/development/python-modules/habluetooth/default.nix @@ -1,46 +1,49 @@ -{ lib -, bleak -, bleak-retry-connector -, bluetooth-adapters -, bluetooth-auto-recovery -, bluetooth-data-tools -, buildPythonPackage -, cython -, fetchFromGitHub -, poetry-core -, pytestCheckHook -, pythonOlder -, setuptools -, wheel +{ + lib, + async-interrupt, + bleak, + bleak-retry-connector, + bluetooth-adapters, + bluetooth-auto-recovery, + bluetooth-data-tools, + buildPythonPackage, + cython, + fetchFromGitHub, + poetry-core, + pytestCheckHook, + pythonOlder, + setuptools, + wheel, }: buildPythonPackage rec { pname = "habluetooth"; - version = "2.4.2"; + version = "3.1.1"; pyproject = true; - disabled = pythonOlder "3.10"; + disabled = pythonOlder "3.11"; src = fetchFromGitHub { owner = "Bluetooth-Devices"; repo = "habluetooth"; rev = "refs/tags/v${version}"; - hash = "sha256-IoVXmq9ShwLpGtoxVOtoirSirJJ1DqBI/mP7PmK7OUs="; + hash = "sha256-HlQAYR+feu1awKFf11Q5Us4zSeHASu8OscJ8T8tlm5M="; }; postPatch = '' substituteInPlace pyproject.toml \ - --replace " --cov=habluetooth --cov-report=term-missing:skip-covered" "" + --replace-fail " --cov=habluetooth --cov-report=term-missing:skip-covered" "" ''; - nativeBuildInputs = [ + build-system = [ cython poetry-core setuptools wheel ]; - propagatedBuildInputs = [ + dependencies = [ + async-interrupt bleak bleak-retry-connector bluetooth-adapters @@ -48,13 +51,9 @@ buildPythonPackage rec { bluetooth-data-tools ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "habluetooth" - ]; + pythonImportsCheck = [ "habluetooth" ]; meta = with lib; { description = "Library for high availability Bluetooth"; |