Skip to content

Commit

Permalink
Merge pull request #217970 from dotlambda/readchar-darwin
Browse files Browse the repository at this point in the history
python310Packages.readchar: run tests on Darwin
  • Loading branch information
mweinelt authored Feb 26, 2023
2 parents 9fddbfb + e11c967 commit 2a1538d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pkgs/development/python-modules/readchar/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
, buildPythonPackage
, fetchFromGitHub

# native
, flake8

# tests
, pytestCheckHook
, pexpect
Expand All @@ -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
Expand Down

0 comments on commit 2a1538d

Please sign in to comment.