nixpkgs/pkgs/development/python-modules/pywizlight/default.nix
2021-02-12 08:33:15 +01:00

48 lines
979 B
Nix

{ lib
, asyncio-dgram
, buildPythonPackage
, click
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pywizlight";
version = "0.4.5";
src = fetchFromGitHub {
owner = "sbidy";
repo = pname;
rev = "v${version}";
sha256 = "sha256-E2rpkdj93LymlkST8HgZ+8VcJFOWwz8787NPfTCSXFY=";
};
propagatedBuildInputs = [
asyncio-dgram
click
];
checkInputs = [
pytest-asyncio
pytestCheckHook
];
# Tests requires network features (e. g., discovery testing)
disabledTests = [
"test_Bulb_Discovery"
"test_timeout"
"test_timeout_PilotBuilder"
];
pythonImportsCheck = [ "pywizlight" ];
meta = with lib; {
description = "Python connector for WiZ light bulbs";
homepage = "https://github.com/sbidy/pywizlight";
changelog = "https://github.com/sbidy/pywizlight/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}