mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 10:46:31 +01:00
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>
43 lines
898 B
Nix
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;
|
|
};
|
|
}
|