Files
nixpkgs/pkgs/development/python-modules/airthings-ble/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

53 lines
1.0 KiB
Nix

{
lib,
async-interrupt,
bleak,
bleak-retry-connector,
buildPythonPackage,
cbor2,
fetchFromGitHub,
poetry-core,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "airthings-ble";
version = "1.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "vincegio";
repo = "airthings-ble";
tag = version;
hash = "sha256-y6vpkq3u5JKImwxevMupUVVAclUcsyrqxoIOYRK0YGQ=";
};
build-system = [ poetry-core ];
dependencies = [
async-interrupt
bleak-retry-connector
cbor2
]
++ lib.optionals (pythonOlder "3.14") [
bleak
];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "airthings_ble" ];
meta = {
description = "Library for Airthings BLE devices";
homepage = "https://github.com/vincegio/airthings-ble";
changelog = "https://github.com/vincegio/airthings-ble/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}