Merge pull request #36837 from knedlsepp/fix-pythonPackages.shapely-on-darwin

pythonPackages.shapely: fix darwin build
This commit is contained in:
Daiderd Jordan 2018-03-12 19:42:57 +01:00 committed by GitHub
commit 9055cb8171
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,10 +30,9 @@ buildPythonPackage rec {
sed -i "s|free = load_dll('c').free|free = load_dll('c', fallbacks=['${stdenv.cc.libc}/lib/${libc}']).free|" shapely/geos.py
'';
# tests/test_voctorized fails because the vectorized extension is not
# available in when running tests
# Disable the tests that improperly try to use the built extensions
checkPhase = ''
py.test --ignore tests/test_vectorized.py
py.test -k 'not test_vectorized and not test_fallbacks' tests
'';
meta = with stdenv.lib; {