diff --git a/pkgs/development/python-modules/aiolifx/default.nix b/pkgs/development/python-modules/aiolifx/default.nix index 3818ad68ef14..d1525f12f6a1 100644 --- a/pkgs/development/python-modules/aiolifx/default.nix +++ b/pkgs/development/python-modules/aiolifx/default.nix @@ -4,10 +4,9 @@ bitstring, buildPythonPackage, click, - fetchPypi, + fetchFromGitHub, ifaddr, inquirerpy, - pythonOlder, setuptools, }: @@ -16,15 +15,17 @@ buildPythonPackage rec { version = "1.2.1"; pyproject = true; - disabled = pythonOlder "3.7"; - - src = fetchPypi { - inherit pname version; - hash = "sha256-h82KPrHcWUUrQFyMy3fY6BmQFA5a4DFJdhJ6zRnKMsc="; + src = fetchFromGitHub { + owner = "aiolifx"; + repo = "aiolifx"; + tag = version; + hash = "sha256-9FTsY/VFfzLlDEjF8ueBQxr30YasdQwei1/KfHiXwMo="; }; build-system = [ setuptools ]; + pythonRelaxDeps = [ "click" ]; + dependencies = [ async-timeout bitstring @@ -38,12 +39,12 @@ buildPythonPackage rec { pythonImportsCheck = [ "aiolifx" ]; - meta = with lib; { + meta = { description = "Module for local communication with LIFX devices over a LAN"; homepage = "https://github.com/aiolifx/aiolifx"; changelog = "https://github.com/aiolifx/aiolifx/releases/tag/${version}"; - license = licenses.mit; - maintainers = with maintainers; [ netixx ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ netixx ]; mainProgram = "aiolifx"; }; }