From 1925a0588b418dc96719cd78f0aaf1e8fac6dbc4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 23 Mar 2022 22:00:29 +0100 Subject: [PATCH] python3Packages.aiohue: 4.3.0 -> 4.4.1 --- .../python-modules/aiohue/default.nix | 27 +++++++++++++------ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/aiohue/default.nix b/pkgs/development/python-modules/aiohue/default.nix index 5862a7e65a6..40620cb13f4 100644 --- a/pkgs/development/python-modules/aiohue/default.nix +++ b/pkgs/development/python-modules/aiohue/default.nix @@ -1,35 +1,46 @@ { lib -, buildPythonPackage -, fetchPypi , aiohttp , asyncio-throttle +, awesomeversion +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook , pythonOlder }: buildPythonPackage rec { pname = "aiohue"; - version = "4.3.0"; + version = "4.4.1"; format = "setuptools"; disabled = pythonOlder "3.8"; - src = fetchPypi { - inherit pname version; - hash = "sha256-PslmDeG/o9WAOc0FhidUNaISrlXa3rba3UEuvPVN/+A="; + src = fetchFromGitHub { + owner = "home-assistant-libs"; + repo = pname; + rev = version; + hash = "sha256-zXjfPd40yYyAuuW4CmaGRvJuORyQJa+6CFQaO6RQPZo="; }; propagatedBuildInputs = [ + awesomeversion aiohttp asyncio-throttle ]; + checkInputs = [ + pytestCheckHook + ]; + pythonImportsCheck = [ "aiohue" "aiohue.discovery" ]; - # Project has no tests - doCheck = false; + disabledTestPaths = [ + # File are prefixed with test_ + "examples/" + ]; meta = with lib; { description = "Python package to talk to Philips Hue";