54 lines
1.0 KiB
Nix

{
aiofiles,
aiohttp,
appdirs,
async-timeout,
async-upnp-client,
buildPythonPackage,
deprecated,
fetchFromGitHub,
lib,
pytest-asyncio,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "python-linkplay";
version = "0.2.12";
pyproject = true;
src = fetchFromGitHub {
owner = "Velleman";
repo = "python-linkplay";
tag = "v${version}";
hash = "sha256-oE3ILnaUDWMNcN3ZAIQKmGgUTc/tqXYdZTX1bxuHBso=";
};
build-system = [ setuptools ];
dependencies = [
aiofiles
aiohttp
appdirs
async-timeout
async-upnp-client
deprecated
];
pythonImportsCheck = [ "linkplay" ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
meta = {
changelog = "https://github.com/Velleman/python-linkplay/releases/tag/${src.tag}";
description = "Python Library for Seamless LinkPlay Device Control";
homepage = "https://github.com/Velleman/python-linkplay";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}