1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytest-asyncio,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "pyheos";
12 version = "0.7.4";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "andrewsayre";
17 repo = "pyheos";
18 rev = "refs/tags/${version}";
19 hash = "sha256-vz81FepXWcCdlY1v7ozp+/l+XpYb91mNmRiLKwjrC4A=";
20 };
21
22 build-system = [ setuptools ];
23
24 nativeCheckInputs = [
25 pytest-asyncio
26 pytestCheckHook
27 ];
28
29 disabledTests = [
30 # accesses network
31 "test_connect_timeout"
32 ];
33
34 pythonImportsCheck = [ "pyheos" ];
35
36 meta = with lib; {
37 changelog = "https://github.com/andrewsayre/pyheos/releases/tag/${version}";
38 description = "Async python library for controlling HEOS devices through the HEOS CLI Protocol";
39 homepage = "https://github.com/andrewsayre/pyheos";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ dotlambda ];
42 };
43}