Files
nixpkgs/pkgs/development/python-modules/airtouch5py/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
931 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
# dependencies
bitarray,
crc,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "airtouch5py";
version = "0.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "danzel";
repo = "airtouch5py";
tag = version;
hash = "sha256-SJ6AVUbdEy0nvpLe39dH/Wc//fDTf0dIvrvVQDUl5eI=";
};
build-system = [ poetry-core ];
pythonRelaxDeps = [
"bitarray"
"crc"
];
dependencies = [
bitarray
crc
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "airtouch5py" ];
meta = {
changelog = "https://github.com/danzel/airtouch5py/releases/tag/${src.tag}";
description = "Python client for the airtouch 5";
homepage = "https://github.com/danzel/airtouch5py";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ jamiemagee ];
};
}