From 8e1727f6c3c2fec8616e47d8596e62fa814db093 Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Mon, 8 Jul 2024 12:22:33 +0200 Subject: [PATCH] octoprint: fix python3.12 compat Signed-off-by: Florian Brandes --- pkgs/applications/misc/octoprint/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/applications/misc/octoprint/default.nix b/pkgs/applications/misc/octoprint/default.nix index 83dc79a0598a..1bf912766db0 100644 --- a/pkgs/applications/misc/octoprint/default.nix +++ b/pkgs/applications/misc/octoprint/default.nix @@ -38,6 +38,17 @@ let inherit version; hash = "sha256-7e6bCn/yZiG9WowQ/0hK4oc3okENmbC7mmhQx/uXeqA="; }; + doCheck = false; + }); + flask-login = super.flask-login.overridePythonAttrs (oldAttrs: rec { + version = "0.6.3"; + src = fetchPypi { + pname = "Flask-Login"; + inherit version; + hash = "sha256-XiPRSmB+8SgGxplZC4nQ8ODWe67sWZ11lHv5wUczAzM="; + }; + build-system = [ self.setuptools ]; + doCheck = false; # DeprecationWarnings }); netaddr = super.netaddr.overridePythonAttrs (oldAttrs: rec { @@ -244,6 +255,9 @@ let ] ++ lib.optionals stdenv.isDarwin [ "test_set_external_modification" ]; + disabledTestPaths = [ + "tests/test_octoprint_setuptools.py" # fails due to distutils and python3.12 + ]; passthru = { inherit (self) python;