python310Packages.bluetooth-sensor-state-data: init at 1.5.0

This commit is contained in:
Fabian Affolter 2022-08-10 20:28:06 +02:00
parent 21b61381da
commit e9b94c278e
2 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,53 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, home-assistant-bluetooth
, poetry-core
, pytestCheckHook
, pythonOlder
, sensor-state-data
}:
buildPythonPackage rec {
pname = "bluetooth-sensor-state-data";
version = "1.5.0";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
rev = "v${version}";
hash = "sha256-Xr9MCTcEnO5bMk9AdBTwBCXwm33UUTP7FYZyjDYrMNA=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
home-assistant-bluetooth
sensor-state-data
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=bluetooth_sensor_state_data --cov-report=term-missing:skip-covered" ""
'';
pythonImportsCheck = [
"bluetooth_sensor_state_data"
];
meta = with lib; {
description = "Models for storing and converting Bluetooth Sensor State Data";
homepage = "https://github.com/bluetooth-devices/bluetooth-sensor-state-data";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -1351,6 +1351,8 @@ in {
bluetooth-adapters = callPackage ../development/python-modules/bluetooth-adapters { };
bluetooth-sensor-state-data = callPackage ../development/python-modules/bluetooth-sensor-state-data { };
blurhash = callPackage ../development/python-modules/blurhash { };
bme280spi = callPackage ../development/python-modules/bme280spi { };