1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

Merge pull request #91118 from simonchatts/darwin-fixes

python: aiohttp/psutil/uvloop Darwin fixes
This commit is contained in:
Frederik Rietdijk 2020-06-20 07:40:35 +02:00 committed by GitHub
commit a48adb3511
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View file

@ -62,6 +62,7 @@ buildPythonPackage rec {
"test_read_incomplete_chunk"
"test_request_tracing_exception"
] ++ lib.optionals stdenv.isDarwin [
"test_addresses" # https://github.com/aio-libs/aiohttp/issues/3572
"test_close"
];

View file

@ -16,7 +16,7 @@ buildPythonPackage rec {
# arch doesn't report frequency is the same way
# tests segfaults on darwin https://github.com/giampaolo/psutil/issues/1715
doCheck = stdenv.isDarwin || stdenv.isx86_64;
doCheck = !stdenv.isDarwin && stdenv.isx86_64;
checkInputs = [ pytest ]
++ lib.optionals isPy27 [ mock ipaddress ];
# out must be referenced as test import paths are relative

View file

@ -55,6 +55,9 @@ buildPythonPackage rec {
export TEST_DIR=$(mktemp -d)
cp -r tests $TEST_DIR
pushd $TEST_DIR
'' + lib.optionalString stdenv.isDarwin ''
# Some tests fail on Darwin
rm tests/test_[stu]*.py
'';
postCheck = ''
popd