depot/third_party/nixpkgs/pkgs/development/python-modules/aioslimproto/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

41 lines
868 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=";
};
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";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}