mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-14 17:23:57 +00:00
Diff: https://github.com/noahhusby/aiorussound/compare/4.9.1...5.0.1 Changelog: https://github.com/noahhusby/aiorussound/releases/tag/5.0.1
56 lines
1.0 KiB
Nix
56 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
|
|
# build-system
|
|
poetry-core,
|
|
|
|
# dependencies
|
|
mashumaro,
|
|
orjson,
|
|
serialx,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiorussound";
|
|
version = "5.0.1";
|
|
pyproject = true;
|
|
|
|
# requires newer f-strings introduced in 3.12
|
|
disabled = pythonOlder "3.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "noahhusby";
|
|
repo = "aiorussound";
|
|
tag = version;
|
|
hash = "sha256-TFRxeQQwgoI4O0k6A1pO622oEONOxANQDLr7SAkjuA0=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
mashumaro
|
|
orjson
|
|
serialx
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|