Merge pull request #205066 from fabaff/ruuvitag-ble
python310Packages.ruuvitag-ble: init at 0.1.1
This commit is contained in:
commit
25eede3f66
2 changed files with 59 additions and 0 deletions
57
pkgs/development/python-modules/ruuvitag-ble/default.nix
Normal file
57
pkgs/development/python-modules/ruuvitag-ble/default.nix
Normal file
|
@ -0,0 +1,57 @@
|
|||
{ lib
|
||||
, bluetooth-data-tools
|
||||
, bluetooth-sensor-state-data
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, hatchling
|
||||
, home-assistant-bluetooth
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, sensor-state-data
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ruuvitag-ble";
|
||||
version = "0.1.1";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Bluetooth-Devices";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-WkPYlEkUH1xvGjBVr6JkLx5CfIPvAa9vX50OjCOmTME=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
hatchling
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
bluetooth-data-tools
|
||||
bluetooth-sensor-state-data
|
||||
home-assistant-bluetooth
|
||||
sensor-state-data
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace " --cov=ruuvitag_ble --cov-report=term-missing:skip-covered" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"ruuvitag_ble"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library for Ruuvitag BLE devices";
|
||||
homepage = "https://github.com/Bluetooth-Devices/ruuvitag-ble";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -9963,6 +9963,8 @@ self: super: with self; {
|
|||
|
||||
runway-python = callPackage ../development/python-modules/runway-python { };
|
||||
|
||||
ruuvitag-ble = callPackage ../development/python-modules/ruuvitag-ble { };
|
||||
|
||||
ruyaml = callPackage ../development/python-modules/ruyaml { };
|
||||
|
||||
rx = callPackage ../development/python-modules/rx { };
|
||||
|
|
Loading…
Reference in a new issue