python310Packages.bluetooth-sensor-state-data: init at 1.5.0
This commit is contained in:
parent
21b61381da
commit
e9b94c278e
@ -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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -1351,6 +1351,8 @@ in {
|
|||||||
|
|
||||||
bluetooth-adapters = callPackage ../development/python-modules/bluetooth-adapters { };
|
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 { };
|
blurhash = callPackage ../development/python-modules/blurhash { };
|
||||||
|
|
||||||
bme280spi = callPackage ../development/python-modules/bme280spi { };
|
bme280spi = callPackage ../development/python-modules/bme280spi { };
|
||||||
|
Loading…
Reference in New Issue
Block a user