depot/third_party/nixpkgs/pkgs/development/python-modules/pywizlight/default.nix

54 lines
1 KiB
Nix
Raw Normal View History

{ lib
, asyncio-dgram
, buildPythonPackage
, click
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pywizlight";
version = "0.4.13";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "sbidy";
repo = pname;
rev = version;
sha256 = "sha256-XO9KmsC3DXgVcGWr5ss3m2wB8rVboWyQUWBidynhkP8=";
};
propagatedBuildInputs = [
asyncio-dgram
click
];
checkInputs = [
pytest-asyncio
pytestCheckHook
];
disabledTests = [
# Tests requires network features (e. g., discovery testing)
"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 ];
};
}