From 254ddffa98fe46d00ef6a98ad0b3c7db24d45ce5 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Sun, 27 Oct 2024 15:37:46 +0800 Subject: [PATCH] flent: 2.1.1 -> 2.2.0 --- pkgs/by-name/fl/flent/package.nix | 47 +++++++++++++++++++------------ 1 file changed, 29 insertions(+), 18 deletions(-) diff --git a/pkgs/by-name/fl/flent/package.nix b/pkgs/by-name/fl/flent/package.nix index a94971aa91d0..5e78f6923f30 100644 --- a/pkgs/by-name/fl/flent/package.nix +++ b/pkgs/by-name/fl/flent/package.nix @@ -1,55 +1,66 @@ { lib, - buildPythonApplication, + python3Packages, fetchPypi, procps, - python, qt5, xvfb-run, }: -buildPythonApplication rec { +python3Packages.buildPythonApplication rec { pname = "flent"; - version = "2.1.1"; + version = "2.2.0"; + src = fetchPypi { inherit pname version; - hash = "sha256-21gd6sPYCZll3Q2O7kucTRhXvc5byXeQr50+1bZVT3M="; + hash = "sha256-BPwh3oWIY1YEI+ecgi9AUiX4Ka/Y5dYikwmfvvNB+eg="; }; - buildInputs = [ python.pkgs.sphinx ]; + build-system = [ python3Packages.sphinx ]; + nativeBuildInputs = [ qt5.wrapQtAppsHook ]; - propagatedBuildInputs = [ - procps - python.pkgs.matplotlib - python.pkgs.pyqt5 - python.pkgs.qtpy + + dependencies = with python3Packages; [ + matplotlib + pyqt5 + qtpy ]; + nativeCheckInputs = [ - python.pkgs.mock + python3Packages.mock xvfb-run ]; checkPhase = '' + runHook preCheck + # we want the gui tests to always run sed -i 's|self.skip|pass; #&|' unittests/test_gui.py + export XDG_RUNTIME_DIR=$(mktemp -d) + export HOME=$(mktemp -d) cat >test-runner <