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