python312Packages.sensorpro-ble: refactor

This commit is contained in:
Fabian Affolter
2024-12-15 11:43:40 +01:00
parent dbf39d72a9
commit 589fe5cdc1
@@ -13,13 +13,13 @@
buildPythonPackage rec {
pname = "sensorpro-ble";
version = "0.5.3";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
repo = "sensorpro-ble";
rev = "refs/tags/v${version}";
hash = "sha256-Zqa6qa0Jw79Iu4VEw6KN0GsZcC1X7OpiYUiyT4zwKyY=";
};
@@ -29,9 +29,9 @@ buildPythonPackage rec {
--replace " --cov=sensorpro_ble --cov-report=term-missing:skip-covered" ""
'';
nativeBuildInputs = [ poetry-core ];
build-system = [ poetry-core ];
propagatedBuildInputs = [
dependencies = [
bluetooth-data-tools
bluetooth-sensor-state-data
sensor-state-data
@@ -45,7 +45,7 @@ buildPythonPackage rec {
description = "Library for Sensorpro BLE devices";
homepage = "https://github.com/Bluetooth-Devices/sensorpro-ble";
changelog = "https://github.com/Bluetooth-Devices/sensorpro-ble/blob/v${version}/CHANGELOG.md";
license = with licenses; [ mit ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}