Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pyheos / default.nix
blob1600baba392d6fdd6a291855839018d3d531dc6e
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonAtLeast
5 , pytest-asyncio
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "pyheos";
11   version = "0.7.2";
12   format = "setuptools";
14   src = fetchFromGitHub {
15     owner = "andrewsayre";
16     repo = "pyheos";
17     rev = version;
18     sha256 = "0rgzg7lnqzzqrjp73c1hj1hq8p0j0msyih3yr4wa2rj81s8ihmby";
19   };
21   nativeCheckInputs = [
22     pytest-asyncio
23     pytestCheckHook
24   ];
26   disabledTests = [
27     # accesses network
28     "test_connect_timeout"
29   ] ++ lib.optionals (pythonAtLeast "3.12") [
30     # stuck in epoll
31     "test_disconnect"
32     "test_commands_fail_when_disconnected"
33   ];
35   pythonImportsCheck = [ "pyheos" ];
37   meta = with lib; {
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   };