53 lines
1 KiB
Nix
53 lines
1 KiB
Nix
|
{
|
||
|
lib,
|
||
|
aiohttp,
|
||
|
buildPythonPackage,
|
||
|
fetchFromGitHub,
|
||
|
mashumaro,
|
||
|
orjson,
|
||
|
poetry-core,
|
||
|
pythonOlder,
|
||
|
websockets,
|
||
|
yarl,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "aiostreammagic";
|
||
|
version = "2.3.1";
|
||
|
pyproject = true;
|
||
|
|
||
|
disabled = pythonOlder "3.11";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "noahhusby";
|
||
|
repo = "aiostreammagic";
|
||
|
rev = "refs/tags/${version}";
|
||
|
hash = "sha256-IMCs4EgOign56mThQ3ljnHs7/lt5874Ni1kavkHnKws=";
|
||
|
};
|
||
|
|
||
|
pythonRelaxDeps = [ "websockets" ];
|
||
|
|
||
|
build-system = [ poetry-core ];
|
||
|
|
||
|
dependencies = [
|
||
|
aiohttp
|
||
|
mashumaro
|
||
|
orjson
|
||
|
websockets
|
||
|
yarl
|
||
|
];
|
||
|
|
||
|
# Module has no tests
|
||
|
doCheck = false;
|
||
|
|
||
|
pythonImportsCheck = [ "aiostreammagic" ];
|
||
|
|
||
|
meta = {
|
||
|
description = "Module for interfacing with Cambridge Audio/Stream Magic compatible streamers";
|
||
|
homepage = "https://github.com/noahhusby/aiostreammagic";
|
||
|
changelog = "https://github.com/noahhusby/aiostreammagic/releases/tag/${version}";
|
||
|
license = lib.licenses.mit;
|
||
|
maintainers = with lib.maintainers; [ fab ];
|
||
|
};
|
||
|
}
|