pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / plugp100 / default.nix
blob6a79e5b30068ba0a1b76eaa06083d26204c6fcd8
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   certifi,
6   scapy,
7   urllib3,
8   semantic-version,
9   aiohttp,
10   jsons,
11   requests,
12   # Test inputs
13   pytestCheckHook,
14   pyyaml,
15   pytest-asyncio,
16   async-timeout,
17   }:
19 buildPythonPackage rec {
20   pname = "plugp100";
21   version = "5.1.3";
23   src = fetchFromGitHub {
24     owner = "petretiandrea";
25     repo = "plugp100";
26     rev = version;
27     sha256 = "sha256-V+9cVBMN8H4oFU51T9BDrLF46xgQHqIsMj8nuPedUGA=";
28   };
30   propagatedBuildInputs =
31     [ certifi jsons requests aiohttp semantic-version scapy urllib3 pyyaml ];
33   nativeCheckInputs = [ pytestCheckHook pytest-asyncio async-timeout ];
35   disabledTestPaths = [
36     "tests/integration/"
37     "tests/unit/hub_child/"
38     "tests/unit/test_plug_strip.py"
39     "tests/unit/test_hub.py "
40     "tests/unit/test_klap_protocol.py"
41   ];
43   meta = with lib; {
44     description = "Python library to control Tapo Plug P100 devices";
45     homepage = "https://github.com/petretiandrea/plugp100";
46     license = licenses.gpl3;
47     maintainers = with maintainers; [ pyle ];
48   };