Merge pull request #194078 from fabaff/ibeacon-ble-bump
python310Packages.ibeacon-ble: init at 0.7.3, python310Packages.kegtron-ble: init at 0.4.0
This commit is contained in:
commit
16a23e65dc
3 changed files with 110 additions and 0 deletions
51
pkgs/development/python-modules/ibeacon-ble/default.nix
Normal file
51
pkgs/development/python-modules/ibeacon-ble/default.nix
Normal file
|
@ -0,0 +1,51 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, home-assistant-bluetooth
|
||||
, poetry-core
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ibeacon-ble";
|
||||
version = "0.7.3";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Bluetooth-Devices";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-+DPbIIarEAaH1bNzo+FvLp0QpNUPhaJ8nPLdKJKfz0k=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
home-assistant-bluetooth
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace " --cov=ibeacon_ble --cov-report=term-missing:skip-covered" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"ibeacon_ble"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library for iBeacon BLE devices";
|
||||
homepage = "https://github.com/Bluetooth-Devices/ibeacon-ble";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
55
pkgs/development/python-modules/kegtron-ble/default.nix
Normal file
55
pkgs/development/python-modules/kegtron-ble/default.nix
Normal file
|
@ -0,0 +1,55 @@
|
|||
{ lib
|
||||
, bluetooth-data-tools
|
||||
, bluetooth-sensor-state-data
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, poetry-core
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, sensor-state-data
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "kegtron-ble";
|
||||
version = "0.4.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Bluetooth-Devices";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-O5I5shW8nL2RAQptS2Bp/GI/4L6o0xXXmwYvRq0MM8o=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
bluetooth-data-tools
|
||||
bluetooth-sensor-state-data
|
||||
sensor-state-data
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace " --cov=kegtron_ble --cov-report=term-missing:skip-covered" ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"kegtron_ble"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library for Kegtron BLE devices";
|
||||
homepage = "https://github.com/Bluetooth-Devices/kegtron-ble";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -4399,6 +4399,8 @@ in {
|
|||
|
||||
iaqualink = callPackage ../development/python-modules/iaqualink { };
|
||||
|
||||
ibeacon-ble = callPackage ../development/python-modules/ibeacon-ble { };
|
||||
|
||||
ibis = callPackage ../development/python-modules/ibis { };
|
||||
|
||||
ibis-framework = callPackage ../development/python-modules/ibis-framework { };
|
||||
|
@ -4986,6 +4988,8 @@ in {
|
|||
|
||||
keepkey = callPackage ../development/python-modules/keepkey { };
|
||||
|
||||
kegtron-ble = callPackage ../development/python-modules/kegtron-ble { };
|
||||
|
||||
keras-applications = callPackage ../development/python-modules/keras-applications { };
|
||||
|
||||
keras = callPackage ../development/python-modules/keras { };
|
||||
|
|
Loading…
Reference in a new issue