159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
53 lines
1 KiB
Nix
53 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
|
|
# build-system
|
|
poetry-core,
|
|
|
|
# dependencies
|
|
mashumaro,
|
|
orjson,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiorussound";
|
|
version = "3.0.5";
|
|
pyproject = true;
|
|
|
|
# requires newer f-strings introduced in 3.12
|
|
disabled = pythonOlder "3.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "noahhusby";
|
|
repo = "aiorussound";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-tv/Box8YqmFXvnezp44lKrPscK9K24+mXBv9aZw/3M4=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
mashumaro
|
|
orjson
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "aiorussound" ];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/noahhusby/aiorussound/releases/tag/${version}";
|
|
description = "Async python package for interfacing with Russound RIO hardware";
|
|
homepage = "https://github.com/noahhusby/aiorussound";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|