Diff: https://github.com/Bluetooth-Devices/sensor-state-data/compare/refs/tags/v2.14.0...v2.15.1 Changelog: https://github.com/Bluetooth-Devices/sensor-state-data/releases/tag/v2.15.1
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, home-assistant-bluetooth
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, sensor-state-data
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sensor-state-data";
|
|
version = "2.15.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Bluetooth-Devices";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-EZL/sYz2U4V2p0eEoxLwZhe9Xok9IcZabNLwAE6itGw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace " --cov=sensor_state_data --cov-report=term-missing:skip-covered" ""
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"sensor_state_data"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Models for storing and converting Sensor Data state";
|
|
homepage = "https://github.com/bluetooth-devices/sensor-state-data";
|
|
changelog = "https://github.com/Bluetooth-Devices/sensor-state-data/releases/tag/v${version}";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|