From 628f5df8ffa4dad51abe3e622fb6d408ba7bb2cd Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sat, 5 Jul 2025 19:32:58 -0700 Subject: [PATCH 1/2] python313Packages.pyps4-2ndscreen: init at 1.3.1 --- .../pyps4-2ndscreen/default.nix | 57 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 59 insertions(+) create mode 100644 pkgs/development/python-modules/pyps4-2ndscreen/default.nix diff --git a/pkgs/development/python-modules/pyps4-2ndscreen/default.nix b/pkgs/development/python-modules/pyps4-2ndscreen/default.nix new file mode 100644 index 000000000000..36ea2e7e101c --- /dev/null +++ b/pkgs/development/python-modules/pyps4-2ndscreen/default.nix @@ -0,0 +1,57 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonOlder, + setuptools, + aiohttp, + click, + construct, + pycryptodomex, + pytestCheckHook, + pytest-asyncio, + asynctest, +}: + +buildPythonPackage rec { + pname = "pyps4-2ndscreen"; + version = "1.3.1"; + pyproject = true; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "ktnrg45"; + repo = "pyps4-2ndscreen"; + tag = version; + hash = "sha256-AXU9WJ7kT/0ev1Cn+CYhEieR7IM5VXebxQYWUS8bdds="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + aiohttp + click + construct + pycryptodomex + ]; + + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + asynctest + ]; + + # Disable tests for Python 3.11+ since they all require asynctest + doCheck = pythonOlder "3.11"; + + pythonImportsCheck = [ "pyps4_2ndscreen" ]; + + meta = { + description = "PS4 2nd Screen Python Library"; + homepage = "https://github.com/ktnrg45/pyps4-2ndscreen"; + changelog = "https://github.com/ktnrg45/pyps4-2ndscreen/releases/tag/${version}"; + license = lib.licenses.lgpl2Plus; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c92e472c087b..bdd94620cdc6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13451,6 +13451,8 @@ self: super: with self; { pyprusalink = callPackage ../development/python-modules/pyprusalink { }; + pyps4-2ndscreen = callPackage ../development/python-modules/pyps4-2ndscreen { }; + pypsrp = callPackage ../development/python-modules/pypsrp { }; pyptlib = callPackage ../development/python-modules/pyptlib { }; From f8066d8aec84324b8c791631a352862412c58989 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sat, 5 Jul 2025 19:33:08 -0700 Subject: [PATCH 2/2] home-assistant: update component packages --- pkgs/servers/home-assistant/component-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index b02e4101cb2c..4bae988ec8d0 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -4583,7 +4583,8 @@ ]; "ps4" = ps: with ps; [ - ]; # missing inputs: pyps4-2ndscreen + pyps4-2ndscreen + ]; "pse" = ps: with ps; [ ]; @@ -7416,6 +7417,7 @@ "prosegur" "proximity" "prusalink" + "ps4" "pterodactyl" "pure_energie" "purpleair"