summary refs log tree commit diff
path: root/pkgs/development/libraries/pybind11
diff options
context:
space:
mode:
authorYuri Aisaka <yuriaisaka@users.noreply.github.com>2018-08-02 04:14:51 +0900
committerxeji <36407913+xeji@users.noreply.github.com>2018-08-01 21:14:51 +0200
commit9caf7ec5a454fd2ea356efdc30623ec022bd7230 (patch)
tree31b3c58bf64fa59a9c715ce9e625ee11de60e921 /pkgs/development/libraries/pybind11
parente090fb29672530c14bb14b153fabdca2280835b0 (diff)
downloadnixpkgs-9caf7ec5a454fd2ea356efdc30623ec022bd7230.tar
nixpkgs-9caf7ec5a454fd2ea356efdc30623ec022bd7230.tar.gz
nixpkgs-9caf7ec5a454fd2ea356efdc30623ec022bd7230.tar.bz2
nixpkgs-9caf7ec5a454fd2ea356efdc30623ec022bd7230.tar.lz
nixpkgs-9caf7ec5a454fd2ea356efdc30623ec022bd7230.tar.xz
nixpkgs-9caf7ec5a454fd2ea356efdc30623ec022bd7230.tar.zst
nixpkgs-9caf7ec5a454fd2ea356efdc30623ec022bd7230.zip
pybind11: init at 2.2.2 (#35027)
* pybind11: init at 2.2.2

* fix license

* remove test dependencies
Diffstat (limited to 'pkgs/development/libraries/pybind11')
-rw-r--r--pkgs/development/libraries/pybind11/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/libraries/pybind11/default.nix b/pkgs/development/libraries/pybind11/default.nix
new file mode 100644
index 00000000000..d7bca0de249
--- /dev/null
+++ b/pkgs/development/libraries/pybind11/default.nix
@@ -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 ];
+  };
+
+}