Merge pull request #217970 from dotlambda/readchar-darwin
python310Packages.readchar: run tests on Darwin
This commit is contained in:
commit
2a1538d398
1 changed files with 5 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue