mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
Merge pull request #272087 from fabaff/habluetooth
python311Packages.habluetooth: init at 0.5.1, python311Packages.bluetooth-data-tools: 1.15.0 -> 1.17.0
This commit is contained in:
commit
5f84cea9b5
@ -11,7 +11,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bluetooth-data-tools";
|
||||
version = "1.15.0";
|
||||
version = "1.17.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
@ -20,7 +20,7 @@ buildPythonPackage rec {
|
||||
owner = "Bluetooth-Devices";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-8Gbw2vXqKvWo30QKExrmH7lUkZBg7zd3o2xWEqGxSBM=";
|
||||
hash = "sha256-CJyTWNBtBk3YpoaiL1/P+aUE4ttthQDTdDuKBYEXrBg=";
|
||||
};
|
||||
|
||||
# The project can build both an optimized cython version and an unoptimized
|
||||
|
68
pkgs/development/python-modules/habluetooth/default.nix
Normal file
68
pkgs/development/python-modules/habluetooth/default.nix
Normal file
@ -0,0 +1,68 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, cython
|
||||
, poetry-core
|
||||
, setuptools
|
||||
, wheel
|
||||
, bleak
|
||||
, pytestCheckHook
|
||||
, bleak-retry-connector
|
||||
, bluetooth-adapters
|
||||
, bluetooth-auto-recovery
|
||||
, bluetooth-data-tools
|
||||
, home-assistant-bluetooth
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "habluetooth";
|
||||
version = "0.5.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Bluetooth-Devices";
|
||||
repo = "habluetooth";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-olR900l/xJug5DeXb8CR0vQBzjzegdiCLCp6AIQu7Tg=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace " --cov=habluetooth --cov-report=term-missing:skip-covered" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
poetry-core
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
bleak
|
||||
bleak-retry-connector
|
||||
bluetooth-adapters
|
||||
bluetooth-auto-recovery
|
||||
bluetooth-data-tools
|
||||
home-assistant-bluetooth
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"habluetooth"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library for high availability Bluetooth";
|
||||
homepage = "https://github.com/Bluetooth-Devices/habluetooth";
|
||||
changelog = "https://github.com/Bluetooth-Devices/habluetooth/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -4951,6 +4951,8 @@ self: super: with self; {
|
||||
|
||||
habanero = callPackage ../development/python-modules/habanero { };
|
||||
|
||||
habluetooth = callPackage ../development/python-modules/habluetooth { };
|
||||
|
||||
habitipy = callPackage ../development/python-modules/habitipy { };
|
||||
|
||||
hachoir = callPackage ../development/python-modules/hachoir { };
|
||||
|
Loading…
Reference in New Issue
Block a user