about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-01-05 10:52:23 -0500
committerGitHub <noreply@github.com>2020-01-05 10:52:23 -0500
commit516377d1d82516a9dc75e8c1e626dc36bf7df59d (patch)
tree40cd3702314a3284dfe1c890392b72b93fd51ad9
parent069188467c574055011d68a43efc4f0ede70472b (diff)
parent951fb0472af179c6d9c93e1bb26f8ccdc04a0766 (diff)
downloadnixlib-516377d1d82516a9dc75e8c1e626dc36bf7df59d.tar
nixlib-516377d1d82516a9dc75e8c1e626dc36bf7df59d.tar.gz
nixlib-516377d1d82516a9dc75e8c1e626dc36bf7df59d.tar.bz2
nixlib-516377d1d82516a9dc75e8c1e626dc36bf7df59d.tar.lz
nixlib-516377d1d82516a9dc75e8c1e626dc36bf7df59d.tar.xz
nixlib-516377d1d82516a9dc75e8c1e626dc36bf7df59d.tar.zst
nixlib-516377d1d82516a9dc75e8c1e626dc36bf7df59d.zip
Merge pull request #76958 from risicle/ris-pybind11-clang-fix
pythonPackages.pybind11: fix for clang/darwin
-rw-r--r--pkgs/development/python-modules/pybind11/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/pybind11/default.nix b/pkgs/development/python-modules/pybind11/default.nix
index 76e60fda86a8..a8c66a49fb8c 100644
--- a/pkgs/development/python-modules/pybind11/default.nix
+++ b/pkgs/development/python-modules/pybind11/default.nix
@@ -1,4 +1,5 @@
-{ lib
+{ stdenv
+, lib
 , buildPythonPackage
 , fetchFromGitHub
 , fetchpatch
@@ -28,7 +29,7 @@ buildPythonPackage rec {
 
   cmakeFlags = [
     "-DEIGEN3_INCLUDE_DIR=${eigen}/include/eigen3"
-  ] ++ lib.optionals (python.isPy3k) [
+  ] ++ lib.optionals (python.isPy3k && !stdenv.cc.isClang) [
   # Enable some tests only on Python 3. The "test_string_view" test
   # 'testTypeError: string_view16_chars(): incompatible function arguments'
   # fails on Python 2.