We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16abcb8 commit e11c967Copy full SHA for e11c967
1 file changed
pkgs/development/python-modules/readchar/default.nix
@@ -2,9 +2,6 @@
2
, buildPythonPackage
3
, fetchFromGitHub
4
5
-# native
6
-, flake8
7
-
8
# tests
9
, pytestCheckHook
10
, pexpect
@@ -26,11 +23,13 @@ buildPythonPackage rec {
26
23
postPatch = ''
27
24
substituteInPlace setup.cfg \
28
25
--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 \
29
+ --replace 'sys.platform.startswith("linux")' 'sys.platform.startswith(("darwin", "linux"))'
30
'';
31
- nativeBuildInputs = [
32
- flake8
33
- ];
+ pythonImportsCheck = [ "readchar" ];
34
35
nativeCheckInputs = [
36
pytestCheckHook
0 commit comments