pybind11: init at 2.2.2 (#35027)

* pybind11: init at 2.2.2

* fix license

* remove test dependencies

authored by Yuri Aisaka and committed by xeji 9caf7ec5 e090fb29

+37
+35
pkgs/development/libraries/pybind11/default.nix
··· 1 + { stdenv, fetchFromGitHub, cmake, python }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "pybind-${version}"; 5 + version = "2.2.2"; 6 + src = fetchFromGitHub { 7 + owner = "pybind"; 8 + repo = "pybind11"; 9 + rev = "v${version}"; 10 + sha256 = "0x71i1n5d02hjbdcnkscrwxs9pb8kplmdpqddhsimabfp84fip48"; 11 + }; 12 + 13 + nativeBuildInputs = [ cmake ]; 14 + 15 + # disable tests as some tests (test_embed/test_interpreter) are failing at the moment 16 + cmakeFlags = [ 17 + "-DPYTHON_EXECUTABLE=${python.interpreter}" 18 + "-DPYBIND11_TEST=0" 19 + ]; 20 + doCheck = false; 21 + 22 + meta = { 23 + homepage = https://github.com/pybind/pybind11; 24 + description = "Seamless operability between C++11 and Python"; 25 + longDescription = '' 26 + Pybind11 is a lightweight header-only library that exposes 27 + C++ types in Python and vice versa, mainly to create Python 28 + bindings of existing C++ code. 29 + ''; 30 + platforms = with stdenv.lib.platforms; unix; 31 + license = stdenv.lib.licenses.bsd3; 32 + maintainers = with stdenv.lib.maintainers; [ yuriaisaka ]; 33 + }; 34 + 35 + }
+2
pkgs/top-level/all-packages.nix
··· 11421 11421 11422 11422 pugixml = callPackage ../development/libraries/pugixml { }; 11423 11423 11424 + pybind11 = callPackage ../development/libraries/pybind11 { }; 11425 + 11424 11426 re2 = callPackage ../development/libraries/re2 { }; 11425 11427 11426 11428 qbs = callPackage ../development/tools/build-managers/qbs { };