3
0
Fork 0
forked from mirrors/nixpkgs

pybind11: init at 2.2.2 (#35027)

* pybind11: init at 2.2.2

* fix license

* remove test dependencies
This commit is contained in:
Yuri Aisaka 2018-08-02 04:14:51 +09:00 committed by xeji
parent e090fb2967
commit 9caf7ec5a4
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,35 @@
{ stdenv, fetchFromGitHub, cmake, python }:
stdenv.mkDerivation rec {
name = "pybind-${version}";
version = "2.2.2";
src = fetchFromGitHub {
owner = "pybind";
repo = "pybind11";
rev = "v${version}";
sha256 = "0x71i1n5d02hjbdcnkscrwxs9pb8kplmdpqddhsimabfp84fip48";
};
nativeBuildInputs = [ cmake ];
# disable tests as some tests (test_embed/test_interpreter) are failing at the moment
cmakeFlags = [
"-DPYTHON_EXECUTABLE=${python.interpreter}"
"-DPYBIND11_TEST=0"
];
doCheck = false;
meta = {
homepage = https://github.com/pybind/pybind11;
description = "Seamless operability between C++11 and Python";
longDescription = ''
Pybind11 is a lightweight header-only library that exposes
C++ types in Python and vice versa, mainly to create Python
bindings of existing C++ code.
'';
platforms = with stdenv.lib.platforms; unix;
license = stdenv.lib.licenses.bsd3;
maintainers = with stdenv.lib.maintainers; [ yuriaisaka ];
};
}

View file

@ -11421,6 +11421,8 @@ with pkgs;
pugixml = callPackage ../development/libraries/pugixml { };
pybind11 = callPackage ../development/libraries/pybind11 { };
re2 = callPackage ../development/libraries/re2 { };
qbs = callPackage ../development/tools/build-managers/qbs { };