Merge pull request #76958 from risicle/ris-pybind11-clang-fix
pythonPackages.pybind11: fix for clang/darwin
commit516377d1d82516a9dc75e8c1e626dc36bf7df59d
authorMario Rodas <marsam@users.noreply.github.com>
dateSun 5 Jan 2020, 10:52 (7 years ago)
parent0691884951fb04
pkgs/development/python-modules/pybind11/default.nix+3−2
@@ -1,4 +1,5 @@
1−{ lib
1+{ stdenv
2+, lib
23, buildPythonPackage
34, fetchFromGitHub
45, fetchpatch
@@ -28,7 +29,7 @@ buildPythonPackage rec {
2829
2930 cmakeFlags = [
3031 "-DEIGEN3_INCLUDE_DIR=${eigen}/include/eigen3"
31− ] ++ lib.optionals (python.isPy3k) [
32+ ] ++ lib.optionals (python.isPy3k && !stdenv.cc.isClang) [
3233 # Enable some tests only on Python 3. The "test_string_view" test
3334 # 'testTypeError: string_view16_chars(): incompatible function arguments'
3435 # fails on Python 2.