From ba44b2ccccc7e7ddf4dbabd411681ff7d40f1a3d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 18 Oct 2021 10:09:57 +0200 Subject: [PATCH] python3Packages.flux-led: 0.22 -> 0.24.8 --- .../python-modules/flux-led/default.nix | 37 +++++++++++++++---- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/flux-led/default.nix b/pkgs/development/python-modules/flux-led/default.nix index 64eafed6c198..92c1d0c1d269 100644 --- a/pkgs/development/python-modules/flux-led/default.nix +++ b/pkgs/development/python-modules/flux-led/default.nix @@ -1,23 +1,44 @@ -{ lib, buildPythonPackage, fetchFromGitHub -, aiohttp, zigpy -, pytest, isPy27 }: +{ lib +, buildPythonPackage +, fetchFromGitHub +, webcolors +, pythonOlder +, pytestCheckHook +}: buildPythonPackage rec { pname = "flux_led"; - version = "0.22"; - disabled = isPy27; + version = "0.24.8"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "Danielhiversen"; repo = "flux_led"; rev = version; - sha256 = "1zgajlkhclyrqhkmivna4ha2lyvfpk5929s042gy59p7mzpkvjx7"; + sha256 = "sha256-A4Duwa4IRDrxpPUb0yyfgoR0GsXD0ewO0cr+1bvl7/4="; }; + propagatedBuildInputs = [ + webcolors + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pytestFlagsArray = [ + "tests.py" + ]; + + pythonImportsCheck = [ + "flux_led" + ]; + meta = with lib; { - description = "A Python library to communicate with the flux_led smart bulbs"; + description = "Python library to communicate with the flux_led smart bulbs"; homepage = "https://github.com/Danielhiversen/flux_led"; - license = licenses.lgpl3; + license = licenses.lgpl3Plus; maintainers = with maintainers; [ colemickens ]; platforms = platforms.linux; };