From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fHVvO-0006YP-1R for guix-patches@gnu.org; Sat, 12 May 2018 10:55:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fHVvK-0003FX-Or for guix-patches@gnu.org; Sat, 12 May 2018 10:55:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:51835) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fHVvK-0003FL-HQ for guix-patches@gnu.org; Sat, 12 May 2018 10:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fHVvK-0008MS-AR for guix-patches@gnu.org; Sat, 12 May 2018 10:55:02 -0400 Subject: [bug#31431] [PATCH 1/1] gnu: Add pybind11. References: In-Reply-To: Resent-Message-ID: From: Fis Trivial Date: Sat, 12 May 2018 14:53:56 +0000 Message-ID: Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: "31431@debbugs.gnu.org" <31431@debbugs.gnu.org> * gnu/packages/python.scm (pybind11): New variable. --- gnu/packages/python.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index f942a2be4..b0099d354 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -13297,3 +13297,31 @@ generators and Python 3.7's context managers into = Python 3.5.") manager compatible with @code{asyncio}.") (license license:asl2.0))) =20 +(define-public pybind11 + (package + (name "pybind11") + (version "2.2.3") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/pybind/pybind11/archive/v" + version ".tar.gz")) + (sha256 + (base32 + "1sj0x4fwsbnwdai5sxpw1l1vh8m5hpbkfk3zanxcbcgs39jpnfrs")) + (file-name (string-append name "-" version ".tar.gz")))) + (build-system cmake-build-system) + (native-inputs + `(("python" ,python) + ("python-pytest" ,python-pytest))) + (arguments + `(#:test-target "check")) + (home-page "https://github.com/pybind/pybind11/") + (synopsis "Seamless operability between C++11 and Python") + (description "pybind11 is a lightweight header-only library that expos= es +C++ types in Python and vice versa, mainly to create Python bindings of +existing C++ code. Its goals and syntax are similar to the excellent +Boost.Python library by David Abrahams: to minimize boilerplate code in +traditional extension modules by inferring type information using compile-= time +introspection.") + (license license:expat))) --=20 2.14.3