1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 lib,
5 pytest-asyncio,
6 pytestCheckHook,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "py-madvr2";
12 version = "1.8.14";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "iloveicedgreentea";
17 repo = "py-madvr";
18 tag = "v${version}";
19 hash = "sha256-7zYvbEoPlY49YZ9Akq+SfzMmqClrr3xTszVW2FUx62Y=";
20 };
21
22 build-system = [ setuptools ];
23
24 pythonImportsCheck = [ "pymadvr" ];
25
26 nativeCheckInputs = [
27 pytest-asyncio
28 pytestCheckHook
29 ];
30
31 disabledTests = [
32 # AssertionError: Expected 'mock' to have been called once. Called 0 times.
33 "test_power_off"
34 # tests connect to 192.168.1.100
35 "test_basic_connection"
36 "test_display_message"
37 "test_ha_command_formats"
38 "test_open_connection"
39 ];
40
41 meta = {
42 changelog = "https://github.com/iloveicedgreentea/py-madvr/releases/tag/${src.tag}";
43 description = "Control MadVR Envy over IP";
44 homepage = "https://github.com/iloveicedgreentea/py-madvr";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ dotlambda ];
47 };
48}