From e11c967d8fce3a35f52268cced4bb0e718c05ed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 23 Feb 2023 21:37:27 -0800 Subject: [PATCH] python310Packages.readchar: run tests on Darwin --- pkgs/development/python-modules/readchar/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/readchar/default.nix b/pkgs/development/python-modules/readchar/default.nix index cb8af2c9495d..d3f0483eec9f 100644 --- a/pkgs/development/python-modules/readchar/default.nix +++ b/pkgs/development/python-modules/readchar/default.nix @@ -2,9 +2,6 @@ , buildPythonPackage , fetchFromGitHub -# native -, flake8 - # tests , pytestCheckHook , pexpect @@ -26,11 +23,13 @@ buildPythonPackage rec { postPatch = '' substituteInPlace setup.cfg \ --replace "--cov=readchar" "" + # run Linux tests on Darwin as well + # see https://github.com/magmax/python-readchar/pull/99 for why this is not upstreamed + substituteInPlace tests/linux/conftest.py \ + --replace 'sys.platform.startswith("linux")' 'sys.platform.startswith(("darwin", "linux"))' ''; - nativeBuildInputs = [ - flake8 - ]; + pythonImportsCheck = [ "readchar" ]; nativeCheckInputs = [ pytestCheckHook