mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-29 17:30:19 +00:00
generated using https://git.kybe.xyz/2kybe3/nixpkgs-github-redirect continuation of: #580644
55 lines
1.0 KiB
Nix
55 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
async-interrupt,
|
|
bleak,
|
|
bleak-retry-connector,
|
|
buildPythonPackage,
|
|
cbor2,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pytest-asyncio,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "airthings-ble";
|
|
version = "1.3.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Airthings";
|
|
repo = "airthings-ble";
|
|
tag = version;
|
|
hash = "sha256-W9Cy5iOwQKDeyr40w/U4V61YyW7LprS24rxkHZL0OCY=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
async-interrupt
|
|
bleak-retry-connector
|
|
cbor2
|
|
]
|
|
++ lib.optionals (pythonOlder "3.14") [
|
|
bleak
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "airthings_ble" ];
|
|
|
|
meta = {
|
|
description = "Library for Airthings BLE devices";
|
|
homepage = "https://github.com/Airthings/airthings-ble";
|
|
changelog = "https://github.com/Airthings/airthings-ble/releases/tag/${src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|