Files
nixpkgs/pkgs/development/python-modules/aioslimproto/default.nix
2026-04-03 20:35:07 -07:00

49 lines
1.0 KiB
Nix

{
lib,
aiohttp,
async-timeout,
buildPythonPackage,
fetchFromGitHub,
pillow,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "aioslimproto";
version = "3.1.8";
pyproject = true;
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "aioslimproto";
tag = finalAttrs.version;
hash = "sha256-xHdwikriA6mcb7tmElqa6suINYxeyyGZQ5iO+P7dRCo=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'version = "0.0.0"' 'version = "${finalAttrs.version}"'
'';
build-system = [ setuptools ];
dependencies = [
aiohttp
async-timeout
pillow
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "aioslimproto" ];
meta = {
description = "Module to control Squeezebox players";
homepage = "https://github.com/home-assistant-libs/aioslimproto";
changelog = "https://github.com/home-assistant-libs/aioslimproto/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
})