python3Packages.timetagger: disable tests on python versions older than 3.10

This commit is contained in:
legendofmiracles 2022-01-25 19:09:39 -06:00 committed by Jonathan Ringer
parent ef0bee5047
commit d90ae4bfac

View file

@ -3,6 +3,8 @@
, fetchFromGitHub , fetchFromGitHub
, pytestCheckHook , pytestCheckHook
, requests , requests
, pytest
, pythonOlder
}: }:
python3Packages.buildPythonPackage rec { python3Packages.buildPythonPackage rec {
@ -33,8 +35,12 @@ python3Packages.buildPythonPackage rec {
checkInputs = [ checkInputs = [
pytestCheckHook pytestCheckHook
requests requests
pytest
]; ];
# fails with `No module named pytest` on python version 3.10
doCheck = pythonOlder "3.10";
meta = with lib; { meta = with lib; {
homepage = "https://timetagger.app"; homepage = "https://timetagger.app";
license = licenses.gpl3; license = licenses.gpl3;