Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pywizlight / default.nix
blobba41712c236d8178e140269336eebfa34a0f8d43
1 { lib
2 , asyncio-dgram
3 , buildPythonPackage
4 , click
5 , fetchFromGitHub
6 , pytest-asyncio
7 , pytestCheckHook
8 }:
10 buildPythonPackage rec {
11   pname = "pywizlight";
12   version = "0.4.6";
14   src = fetchFromGitHub {
15     owner = "sbidy";
16     repo = pname;
17     rev = "v${version}";
18     sha256 = "sha256-BCHLd1SbdHWrl7dcLD69t2K5Sa1WtGpMxTmMyDWl9u4=";
19   };
21   propagatedBuildInputs = [
22     asyncio-dgram
23     click
24   ];
26   checkInputs = [
27     pytest-asyncio
28     pytestCheckHook
29   ];
31   # Tests requires network features (e. g., discovery testing)
32   disabledTests = [
33     "test_Bulb_Discovery"
34     "test_timeout"
35     "test_timeout_PilotBuilder"
36   ];
38   pythonImportsCheck = [ "pywizlight" ];
40   meta = with lib; {
41     description = "Python connector for WiZ light bulbs";
42     homepage = "https://github.com/sbidy/pywizlight";
43     changelog = "https://github.com/sbidy/pywizlight/releases/tag/v${version}";
44     license = with licenses; [ mit ];
45     maintainers = with maintainers; [ fab ];
46   };