nixpkgs/pkgs/development/python-modules/pyzerproc/default.nix
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

43 lines
898 B
Nix

{
lib,
bleak,
click,
buildPythonPackage,
fetchFromGitHub,
setuptools,
}:
buildPythonPackage rec {
pname = "pyzerproc";
version = "0.4.12";
pyproject = true;
src = fetchFromGitHub {
owner = "emlove";
repo = "pyzerproc";
tag = version;
hash = "sha256-vS0sk/KjDhWispZvCuGlmVLLfeFymHqxwNzNqNRhg6k=";
};
patches = [ ./bleak-compat.patch ];
build-system = [ setuptools ];
dependencies = [
bleak
click
];
doCheck = false; # tries to access dbus, which leads to FileNotFoundError
pythonImportsCheck = [ "pyzerproc" ];
meta = {
description = "Python library to control Zerproc Bluetooth LED smart string lights";
mainProgram = "pyzerproc";
homepage = "https://github.com/emlove/pyzerproc";
license = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ fab ];
platforms = lib.platforms.linux;
};
}