Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
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.8.2";
|
|
pyproject = true;
|
|
|
|
# requires newer f-strings introduced in 3.12
|
|
disabled = pythonOlder "3.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "noahhusby";
|
|
repo = "aiorussound";
|
|
tag = version;
|
|
hash = "sha256-5g1LdltGw96EZWWj0Fei8i6l5yslQgicI/oI9jr1w0U=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
mashumaro
|
|
orjson
|
|
pyserial-asyncio-fast
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "aiorussound" ];
|
|
|
|
meta = with lib; {
|
|
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 = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|