python312Packages.bluetooth-sensor-state-data: refactor
This commit is contained in:
parent
e1ba82b92b
commit
980e77541f
|
@ -12,37 +12,38 @@
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "bluetooth-sensor-state-data";
|
pname = "bluetooth-sensor-state-data";
|
||||||
version = "1.7.0";
|
version = "1.7.0";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.9";
|
disabled = pythonOlder "3.9";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Bluetooth-Devices";
|
owner = "Bluetooth-Devices";
|
||||||
repo = pname;
|
repo = "bluetooth-sensor-state-data";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-phiK+2tULBE78d1X/TsaT2kLRHxiCiuLMkaI7S6tqJ8=";
|
hash = "sha256-phiK+2tULBE78d1X/TsaT2kLRHxiCiuLMkaI7S6tqJ8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ poetry-core ];
|
postPatch = ''
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace-fail " --cov=bluetooth_sensor_state_data --cov-report=term-missing:skip-covered" ""
|
||||||
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
build-system = [ poetry-core ];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
home-assistant-bluetooth
|
home-assistant-bluetooth
|
||||||
sensor-state-data
|
sensor-state-data
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [ pytestCheckHook ];
|
nativeCheckInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace pyproject.toml \
|
|
||||||
--replace " --cov=bluetooth_sensor_state_data --cov-report=term-missing:skip-covered" ""
|
|
||||||
'';
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "bluetooth_sensor_state_data" ];
|
pythonImportsCheck = [ "bluetooth_sensor_state_data" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Models for storing and converting Bluetooth Sensor State Data";
|
description = "Models for storing and converting Bluetooth Sensor State Data";
|
||||||
homepage = "https://github.com/bluetooth-devices/bluetooth-sensor-state-data";
|
homepage = "https://github.com/bluetooth-devices/bluetooth-sensor-state-data";
|
||||||
license = with licenses; [ asl20 ];
|
changelog = "https://github.com/Bluetooth-Devices/bluetooth-sensor-state-data/releases/tag/v${version}";
|
||||||
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user