1{ lib
2, async-timeout
3, buildPythonPackage
4, fetchFromGitHub
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "aioslimproto";
11 version = "2.2.2";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.9";
15
16 src = fetchFromGitHub {
17 owner = "home-assistant-libs";
18 repo = pname;
19 rev = "refs/tags/${version}";
20 hash = "sha256-ZvyAZ/VLkkZkDTBzuxt7hrCuYxNsMHm0C0wkabnE3Ek=";
21 };
22
23 propagatedBuildInputs = [
24 async-timeout
25 ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 ];
30
31 disabledTests = [
32 # AssertionError: assert ['mixer', 'volume', '50'] == ['volume', '50']
33 "test_msg_instantiation"
34 ];
35
36 pythonImportsCheck = [
37 "aioslimproto"
38 ];
39
40 meta = with lib; {
41 description = "Module to control Squeezebox players";
42 homepage = "https://github.com/home-assistant-libs/aioslimproto";
43 changelog = "https://github.com/home-assistant-libs/aioslimproto/releases/tag/${version}";
44 license = with licenses; [ asl20 ];
45 maintainers = with maintainers; [ fab ];
46 };
47}