mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-03 03:10:22 +00:00
python3Packages.lighthouse-ble: init at 0.2.0
This commit is contained in:
49
pkgs/development/python-modules/lighthouse-ble/default.nix
Normal file
49
pkgs/development/python-modules/lighthouse-ble/default.nix
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
hatchling,
|
||||
bleak,
|
||||
bleak-retry-connector,
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "lighthouse-ble";
|
||||
version = "0.2.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.13";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "g4bri3lDev";
|
||||
repo = "lighthouse-ble";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-GnzYyrM25ycb66u+c+YK1DAVnMvip8MIG4lAFRfrTpc=";
|
||||
};
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
dependencies = [
|
||||
bleak
|
||||
bleak-retry-connector
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "lighthouse_ble" ];
|
||||
|
||||
meta = {
|
||||
description = "Async Bluetooth LE control of SteamVR Lighthouse base stations (Valve Index V2, HTC Vive V1)";
|
||||
homepage = "https://github.com/g4bri3lDev/lighthouse-ble";
|
||||
changelog = "https://github.com/g4bri3lDev/lighthouse-ble/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = [ lib.maintainers.jamiemagee ];
|
||||
mainProgram = "lighthouse-ble";
|
||||
};
|
||||
})
|
||||
@@ -10064,6 +10064,8 @@ self: super: with self; {
|
||||
|
||||
lightgbm = callPackage ../development/python-modules/lightgbm { };
|
||||
|
||||
lighthouse-ble = callPackage ../development/python-modules/lighthouse-ble { };
|
||||
|
||||
lightify = callPackage ../development/python-modules/lightify { };
|
||||
|
||||
lightning = callPackage ../development/python-modules/lightning { };
|
||||
|
||||
Reference in New Issue
Block a user