diff --git a/pkgs/development/python-modules/pyskyqremote/default.nix b/pkgs/development/python-modules/pyskyqremote/default.nix index d62a7a76fd78..1b68e89a7c9a 100644 --- a/pkgs/development/python-modules/pyskyqremote/default.nix +++ b/pkgs/development/python-modules/pyskyqremote/default.nix @@ -3,23 +3,26 @@ buildPythonPackage, fetchFromGitHub, requests, + setuptools, websocket-client, xmltodict, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "pyskyqremote"; version = "0.3.26"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "RogerSelwyn"; repo = "skyq_remote"; - tag = version; + tag = finalAttrs.version; hash = "sha256-aMgUwgKHgR+NQvRxiUV7GaXehjDIlJJJHwSmHDmzK08="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ requests websocket-client xmltodict @@ -33,8 +36,8 @@ buildPythonPackage rec { meta = { description = "Python module for accessing SkyQ boxes"; homepage = "https://github.com/RogerSelwyn/skyq_remote"; - changelog = "https://github.com/RogerSelwyn/skyq_remote/releases/tag/${version}"; + changelog = "https://github.com/RogerSelwyn/skyq_remote/releases/tag/${finalAttrs.version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; -} +})