From 0e669b9e514427648f9d8509db493eacfff4285e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 11 Feb 2021 15:11:58 +0100 Subject: [PATCH] python3Packages.pywizlight: 0.4.1 -> 0.4.4 --- .../python-modules/pywizlight/default.nix | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pywizlight/default.nix b/pkgs/development/python-modules/pywizlight/default.nix index 32baa25e52e7..28d7921e244d 100644 --- a/pkgs/development/python-modules/pywizlight/default.nix +++ b/pkgs/development/python-modules/pywizlight/default.nix @@ -1,19 +1,21 @@ { lib -, buildPythonPackage -, fetchFromGitHub , asyncio-dgram +, buildPythonPackage , click +, fetchFromGitHub +, pytest-asyncio +, pytestCheckHook }: buildPythonPackage rec { pname = "pywizlight"; - version = "0.4.1"; + version = "0.4.4"; src = fetchFromGitHub { owner = "sbidy"; repo = pname; rev = "v${version}"; - sha256 = "0kyhyda28zbni9sjv6kvky6wlhqldl47niddgpbjsv5dlb9xvxns"; + sha256 = "139jnmyyfd8cq0xnxqbffkyjmy79gcpiwqmcn2dy27nz3608c1qv"; }; propagatedBuildInputs = [ @@ -21,13 +23,24 @@ buildPythonPackage rec { click ]; - # no tests are present - doCheck = false; + 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 ]; };