Files
nixpkgs/pkgs/development/python-modules/aioslimproto/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
1.0 KiB
Nix

{
lib,
aiohttp,
async-timeout,
buildPythonPackage,
fetchFromGitHub,
pillow,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "aioslimproto";
version = "3.1.1";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "aioslimproto";
tag = version;
hash = "sha256-L52Y6nOE77t0+vx4t2Ix39Xk0zxJklaGbBDuwWo1qek=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail 'version = "0.0.0"' 'version = "${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/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}