1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytest-asyncio
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "pyheos";
10 version = "0.7.2";
11
12 src = fetchFromGitHub {
13 owner = "andrewsayre";
14 repo = "pyheos";
15 rev = version;
16 sha256 = "0rgzg7lnqzzqrjp73c1hj1hq8p0j0msyih3yr4wa2rj81s8ihmby";
17 };
18
19 checkInputs = [
20 pytest-asyncio
21 pytestCheckHook
22 ];
23
24 disabledTests = [
25 # accesses network
26 "test_connect_timeout"
27 ];
28
29 pythonImportsCheck = [ "pyheos" ];
30
31 meta = with lib; {
32 description = "Async python library for controlling HEOS devices through the HEOS CLI Protocol";
33 homepage = "https://github.com/andrewsayre/pyheos";
34 license = licenses.asl20;
35 maintainers = with maintainers; [ dotlambda ];
36 };
37}