83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
42 lines
963 B
Nix
42 lines
963 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioslimproto";
|
|
version = "2.2.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "home-assistant-libs";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-3aLAAUaoGkdzjUHFb6aiyVv0fzO8DojN0Y3DTf6h2Ow=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# AssertionError: assert ['mixer', 'volume', '50'] == ['volume', '50']
|
|
"test_msg_instantiation"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"aioslimproto"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Module to control Squeezebox players";
|
|
homepage = "https://github.com/home-assistant-libs/aioslimproto";
|
|
changelog = "https://github.com/home-assistant-libs/aioslimproto/releases/tag/${version}";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|