python310Packages.sensorpush-ble: init at 1.5.1

This commit is contained in:
Fabian Affolter 2022-08-10 20:37:32 +02:00
parent e63f619926
commit 7fd4378140
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,55 @@
{ lib
, bluetooth-sensor-state-data
, buildPythonPackage
, fetchFromGitHub
, home-assistant-bluetooth
, poetry-core
, pytestCheckHook
, pythonOlder
, sensor-state-data
}:
buildPythonPackage rec {
pname = "sensorpush-ble";
version = "1.5.1";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
rev = "v${version}";
hash = "sha256-2Q56fXMgw1Al3l6WKI1cdGXfLmZ1qkidkoWKmvEXRaI=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
bluetooth-sensor-state-data
home-assistant-bluetooth
sensor-state-data
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=sensorpush_ble --cov-report=term-missing:skip-covered" ""
'';
pythonImportsCheck = [
"sensorpush_ble"
];
meta = with lib; {
description = "Library for SensorPush BLE devices";
homepage = "https://github.com/Bluetooth-Devices/sensorpush-ble";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -9727,6 +9727,8 @@ in {
sensor-state-data = callPackage ../development/python-modules/sensor-state-data { };
sensorpush-ble = callPackage ../development/python-modules/sensorpush-ble { };
sentencepiece = callPackage ../development/python-modules/sentencepiece {
inherit (pkgs) sentencepiece;
};