diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-01-05 10:52:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-05 10:52:23 -0500 |
commit | 516377d1d82516a9dc75e8c1e626dc36bf7df59d (patch) | |
tree | 40cd3702314a3284dfe1c890392b72b93fd51ad9 | |
parent | 069188467c574055011d68a43efc4f0ede70472b (diff) | |
parent | 951fb0472af179c6d9c93e1bb26f8ccdc04a0766 (diff) |
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.nix | 5 |
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 76e60fda86a87..a8c66a49fb8ce 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. |