Merge pull request #186678 from fabaff/bluetooth-data-tools
python310Packages.bluetooth-data-tools: init at 0.1.2
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bluetooth-data-tools";
|
||||
version = "0.1.2";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Bluetooth-Devices";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-AobkHODtWun2TPxb6yR/ieYyeIndTG0KmxTY81fQHCA=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace " --cov=bluetooth_data_tools --cov-report=term-missing:skip-covered" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"bluetooth_data_tools"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library for converting bluetooth data and packets";
|
||||
homepage = "https://github.com/Bluetooth-Devices/bluetooth-data-tools";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -1383,6 +1383,8 @@ in {
|
||||
|
||||
bluetooth-adapters = callPackage ../development/python-modules/bluetooth-adapters { };
|
||||
|
||||
bluetooth-data-tools= callPackage ../development/python-modules/bluetooth-data-tools { };
|
||||
|
||||
bluetooth-sensor-state-data = callPackage ../development/python-modules/bluetooth-sensor-state-data { };
|
||||
|
||||
blurhash = callPackage ../development/python-modules/blurhash { };
|
||||
|
||||
Reference in New Issue
Block a user