nixpkgs/pkgs/development/libraries/pybind11/default.nix
Yuri Aisaka 9caf7ec5a4 pybind11: init at 2.2.2 (#35027)
* pybind11: init at 2.2.2

* fix license

* remove test dependencies
2018-08-01 21:14:51 +02:00

35 lines
1,021 B
Nix

{ 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 ];
};
}