Merge pull request #236921 from fabaff/sensirion-ble
python311Packages.sensirion-ble: init at 0.1.0
This commit is contained in:
commit
2d58f0fed0
52
pkgs/development/python-modules/sensirion-ble/default.nix
Normal file
52
pkgs/development/python-modules/sensirion-ble/default.nix
Normal file
|
@ -0,0 +1,52 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, hatchling
|
||||
, bluetooth-data-tools
|
||||
, bluetooth-sensor-state-data
|
||||
, home-assistant-bluetooth
|
||||
, sensor-state-data
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sensirion-ble";
|
||||
version = "0.1.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "akx";
|
||||
repo = "sensirion-ble";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-7l76/Bci1ztt2CfwytLOySK6IL8IDijpB0AYhksRP7o=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace " --cov=sensirion_ble --cov-report=term-missing:skip-covered" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
hatchling
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
bluetooth-data-tools
|
||||
bluetooth-sensor-state-data
|
||||
home-assistant-bluetooth
|
||||
sensor-state-data
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"sensirion_ble"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Parser for Sensirion BLE devices";
|
||||
homepage = "https://github.com/akx/sensirion-ble";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -3500,10 +3500,11 @@
|
|||
psutil-home-assistant
|
||||
pyserial
|
||||
pyudev
|
||||
sensirion-ble
|
||||
sqlalchemy
|
||||
webrtcvad
|
||||
zeroconf
|
||||
]; # missing inputs: sensirion-ble
|
||||
];
|
||||
"sensor" = ps: with ps; [
|
||||
fnv-hash-fast
|
||||
psutil-home-assistant
|
||||
|
@ -5280,6 +5281,7 @@
|
|||
"sense"
|
||||
"senseme"
|
||||
"sensibo"
|
||||
"sensirion_ble"
|
||||
"sensor"
|
||||
"sensorpro"
|
||||
"sensorpush"
|
||||
|
|
|
@ -11040,6 +11040,8 @@ self: super: with self; {
|
|||
|
||||
sense-energy = callPackage ../development/python-modules/sense-energy { };
|
||||
|
||||
sensirion-ble = callPackage ../development/python-modules/sensirion-ble { };
|
||||
|
||||
sensor-state-data = callPackage ../development/python-modules/sensor-state-data { };
|
||||
|
||||
sensorpro-ble = callPackage ../development/python-modules/sensorpro-ble { };
|
||||
|
|
Loading…
Reference in a new issue