mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
48 lines
974 B
Nix
48 lines
974 B
Nix
{
|
|
lib,
|
|
bleak,
|
|
bleak-retry-connector,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flux-led,
|
|
poetry-core,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "led-ble";
|
|
version = "1.1.12";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Bluetooth-Devices";
|
|
repo = "led-ble";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-NPxDcdrcscvqfsJAqq4ZJEWedsWsPKBYEsiUambU7rA=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
bleak
|
|
bleak-retry-connector
|
|
flux-led
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "led_ble" ];
|
|
|
|
meta = {
|
|
description = "Library for LED BLE devices";
|
|
homepage = "https://github.com/Bluetooth-Devices/led-ble";
|
|
changelog = "https://github.com/Bluetooth-Devices/led-ble/blob/${finalAttrs.src.tag}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|