From 2c1ab9196338cf9ec9b59f8723517f2625df3163 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 23 Nov 2025 12:16:17 +0100 Subject: [PATCH 1/2] python313Packages.pysmartapp: modernize --- .../python-modules/pysmartapp/default.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pysmartapp/default.nix b/pkgs/development/python-modules/pysmartapp/default.nix index 3214c7965e38..dadb967efced 100644 --- a/pkgs/development/python-modules/pysmartapp/default.nix +++ b/pkgs/development/python-modules/pysmartapp/default.nix @@ -5,24 +5,24 @@ httpsig, pytest-asyncio, pytestCheckHook, - pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "pysmartapp"; version = "0.3.5"; - format = "setuptools"; - - disabled = pythonOlder "3.8"; + pyproject = true; src = fetchFromGitHub { owner = "andrewsayre"; repo = "pysmartapp"; - rev = version; + tag = version; hash = "sha256-RiRGOO5l5hcHllyDDGLtQHr51JOTZhAa/wK8BfMqmAY="; }; - propagatedBuildInputs = [ httpsig ]; + build-system = [ setuptools ]; + + dependencies = [ httpsig ]; nativeCheckInputs = [ pytest-asyncio @@ -34,8 +34,8 @@ buildPythonPackage rec { meta = with lib; { description = "Python implementation to work with SmartApp lifecycle events"; homepage = "https://github.com/andrewsayre/pysmartapp"; - changelog = "https://github.com/andrewsayre/pysmartapp/releases/tag/${version}"; - license = with licenses; [ mit ]; + changelog = "https://github.com/andrewsayre/pysmartapp/releases/tag/${src.tag}"; + license = licenses.mit; maintainers = with maintainers; [ fab ]; }; } From 7a6be59eb638974cbbeb7310b641fd8ba9530c95 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 23 Nov 2025 12:18:28 +0100 Subject: [PATCH 2/2] python313Packages.pysmartapp: disabled failing tests --- pkgs/development/python-modules/pysmartapp/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/pysmartapp/default.nix b/pkgs/development/python-modules/pysmartapp/default.nix index dadb967efced..1159766d4cf4 100644 --- a/pkgs/development/python-modules/pysmartapp/default.nix +++ b/pkgs/development/python-modules/pysmartapp/default.nix @@ -31,6 +31,11 @@ buildPythonPackage rec { pythonImportsCheck = [ "pysmartapp" ]; + disabledTestPaths = [ + # These tests are outdated + "tests/test_smartapp.py" + ]; + meta = with lib; { description = "Python implementation to work with SmartApp lifecycle events"; homepage = "https://github.com/andrewsayre/pysmartapp";