From 5dcdeb6e0d85ecd44f47f026519f3b1134249407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Bourdeauducq?= Date: Mon, 30 Sep 2024 14:58:02 +0800 Subject: [PATCH] flake: update qasync, sync with nixpkgs --- flake.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 01680ed10..3d5b7843c 100644 --- a/flake.nix +++ b/flake.nix @@ -60,15 +60,21 @@ qasync = pkgs.python3Packages.buildPythonPackage rec { pname = "qasync"; - version = "0.25.0"; + version = "0.27.1"; + format = "pyproject"; src = pkgs.fetchFromGitHub { owner = "CabbageDevelopment"; repo = "qasync"; - rev = "v${version}"; - sha256 = "sha256-lfH8FNA8cP7dmxR+ihoe2Gr8uOxXHdqn1AhNLIkX5ko="; + rev = "refs/tags/v${version}"; + sha256 = "sha256-oXzwilhJ1PhodQpOZjnV9gFuoDy/zXWva9LhhK3T00g="; }; + postPatch = '' + rm qasync/_windows.py # Ignoring it is not taking effect and it will not be used on Linux + ''; + buildInputs = [ pkgs.python3Packages.poetry-core ]; propagatedBuildInputs = [ pkgs.python3Packages.pyqt6 ]; - nativeCheckInputs = [ pkgs.python3Packages.pytest-runner pkgs.python3Packages.pytestCheckHook ]; + checkInputs = [ pkgs.python3Packages.pytestCheckHook ]; + pythonImportsCheck = [ "qasync" ]; disabledTestPaths = [ "tests/test_qeventloop.py" ]; };