567e8dfd8e
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>
47 lines
917 B
Nix
47 lines
917 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
protobuf,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
zeroconf,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiobafi6";
|
|
version = "0.10.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jfroy";
|
|
repo = "aiobafi6";
|
|
tag = version;
|
|
hash = "sha256-7NIpIRVs6PFPByrGfVDA6P7JTvXGrzbH/lOPdPfZH04=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
protobuf
|
|
zeroconf
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "aiobafi6" ];
|
|
|
|
meta = {
|
|
description = "Library for communication with the Big Ass Fans i6 firmware";
|
|
homepage = "https://github.com/jfroy/aiobafi6";
|
|
changelog = "https://github.com/jfroy/aiobafi6/releases/tag/${src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "aiobafi6";
|
|
};
|
|
}
|