From 396846082cf5e1c1a23e5c322a46cb73e7de3bab Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 12 Jan 2024 20:45:29 +0100 Subject: [PATCH 1/2] python311Packages.arris-tg2492lg: 2.1.0 -> 2.2.0 Diff: https://github.com/vanbalken/arris-tg2492lg/compare/2.1.0...2.2.0 --- pkgs/development/python-modules/arris-tg2492lg/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/arris-tg2492lg/default.nix b/pkgs/development/python-modules/arris-tg2492lg/default.nix index 78239b1a4af6..e0c938b1755e 100644 --- a/pkgs/development/python-modules/arris-tg2492lg/default.nix +++ b/pkgs/development/python-modules/arris-tg2492lg/default.nix @@ -9,7 +9,7 @@ buildPythonPackage rec { pname = "arris-tg2492lg"; - version = "2.1.0"; + version = "2.2.0"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -18,7 +18,7 @@ buildPythonPackage rec { owner = "vanbalken"; repo = pname; rev = version; - hash = "sha256-C1o9HWWJ/G/7Pp6I0FbRmX2PQvUJx71L9wHRkUMtnL4="; + hash = "sha256-MQq9jMUoJgqaY0f9YIbhME2kO+ektPqBnT9REg3qDpg="; }; propagatedBuildInputs = [ From 1c177d54f3ebf767804bc9840c7c8c32bdf011c2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 12 Jan 2024 20:48:15 +0100 Subject: [PATCH 2/2] python311Packages.arris-tg2492lg: refactor --- .../python-modules/arris-tg2492lg/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/arris-tg2492lg/default.nix b/pkgs/development/python-modules/arris-tg2492lg/default.nix index e0c938b1755e..e44aec28aed7 100644 --- a/pkgs/development/python-modules/arris-tg2492lg/default.nix +++ b/pkgs/development/python-modules/arris-tg2492lg/default.nix @@ -5,22 +5,27 @@ , pytest-aiohttp , pytestCheckHook , pythonOlder +, setuptools }: buildPythonPackage rec { pname = "arris-tg2492lg"; version = "2.2.0"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "vanbalken"; - repo = pname; - rev = version; + repo = "arris-tg2492lg"; + rev = "refs/tags/${version}"; hash = "sha256-MQq9jMUoJgqaY0f9YIbhME2kO+ektPqBnT9REg3qDpg="; }; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ aiohttp ]; @@ -37,6 +42,7 @@ buildPythonPackage rec { meta = with lib; { description = "Library to connect to an Arris TG2492LG"; homepage = "https://github.com/vanbalken/arris-tg2492lg"; + changelog = "https://github.com/vanbalken/arris-tg2492lg/releases/tag/${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; };