41 lines
862 B
Nix
41 lines
862 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioslimproto";
|
|
version = "2.1.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "home-assistant-libs";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-Er7UsJDBDXD8CQSkUIOeO78HQaCsrRycU18LOjBpv/w=";
|
|
};
|
|
|
|
checkInputs = [
|
|
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";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|