From 951fb0472af179c6d9c93e1bb26f8ccdc04a0766 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sat, 4 Jan 2020 23:10:16 +0000 Subject: pythonPackages.pybind11: fix for clang default clang is still not happy with c++17's sized and aligned deallocations --- pkgs/development/python-modules/pybind11/default.nix | 5 +++-- 1 file 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. -- cgit 1.4.1