From d90ae4bfac0f23a38700de4278486c9483015504 Mon Sep 17 00:00:00 2001 From: legendofmiracles Date: Tue, 25 Jan 2022 19:09:39 -0600 Subject: [PATCH] python3Packages.timetagger: disable tests on python versions older than 3.10 --- pkgs/development/python-modules/timetagger/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/timetagger/default.nix b/pkgs/development/python-modules/timetagger/default.nix index c41952f8542..1b1460ae0e0 100644 --- a/pkgs/development/python-modules/timetagger/default.nix +++ b/pkgs/development/python-modules/timetagger/default.nix @@ -3,6 +3,8 @@ , fetchFromGitHub , pytestCheckHook , requests +, pytest +, pythonOlder }: python3Packages.buildPythonPackage rec { @@ -33,8 +35,12 @@ python3Packages.buildPythonPackage rec { checkInputs = [ pytestCheckHook requests + pytest ]; + # fails with `No module named pytest` on python version 3.10 + doCheck = pythonOlder "3.10"; + meta = with lib; { homepage = "https://timetagger.app"; license = licenses.gpl3;