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>
56 lines
1.0 KiB
Nix
56 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
|
|
# build-system
|
|
poetry-core,
|
|
|
|
# dependencies
|
|
mashumaro,
|
|
orjson,
|
|
pyserial-asyncio-fast,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiorussound";
|
|
version = "4.9.0";
|
|
pyproject = true;
|
|
|
|
# requires newer f-strings introduced in 3.12
|
|
disabled = pythonOlder "3.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "noahhusby";
|
|
repo = "aiorussound";
|
|
tag = version;
|
|
hash = "sha256-okuDbY4Dx57a7zQc+LYCwe+FOjQS+hbAzSAK47uhGFg=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
mashumaro
|
|
orjson
|
|
pyserial-asyncio-fast
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "aiorussound" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/noahhusby/aiorussound/releases/tag/${src.tag}";
|
|
description = "Async python package for interfacing with Russound RIO hardware";
|
|
homepage = "https://github.com/noahhusby/aiorussound";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ hexa ];
|
|
};
|
|
}
|