blob: de497d6eec1886395dcb410913e369285b26c3af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
cmake,
abseil-cpp,
pybind11,
python,
}:
buildPythonPackage rec {
pname = "pybind11-abseil";
version = "202402.0";
pyproject = false;
src = fetchFromGitHub {
owner = "pybind";
repo = "pybind11_abseil";
rev = "v${version}";
hash = "sha256-hFVuGzEFqAEm2p2RmfhFtLB6qOqNuVNcwcLh8dIWi0k=";
};
patches = [
(fetchpatch {
name = "pybind11_abseil.patch";
url = "https://build.opensuse.org/public/source/openSUSE:Factory/pybind11-abseil/pybind11_abseil.patch?rev=2";
hash = "sha256-zwxCIhYMvexdSUmKM22OMBMEo0NRDgMtSVMDySFCn6U=";
})
(fetchpatch {
name = "use-system-packages-if-possible.patch";
url = "https://build.opensuse.org/public/source/openSUSE:Factory/pybind11-abseil/use-system-packages-if-possible.patch?rev=2";
hash = "sha256-CLHOSni2ej6ICtvMtBoCIpR9CNPPibwIS+hYbOCAwBE=";
})
(fetchpatch {
name = "0001-Install-headers-and-CMake-development-files.patch";
url = "https://build.opensuse.org/public/source/openSUSE:Factory/pybind11-abseil/0001-Install-headers-and-CMake-development-files.patch?rev=2";
hash = "sha256-TU9AzvF83aROY4gwys2ITOcdtjEm4x2IbhX4cHNWp0M=";
})
];
nativeBuildInputs = [ cmake ];
buildInputs = [
abseil-cpp
pybind11
];
cmakeFlags = [
(lib.cmakeFeature "CMAKE_INSTALL_PYDIR" "${placeholder "out"}/${python.sitePackages}")
(lib.cmakeFeature "Python_EXECUTABLE" python.interpreter)
];
meta = {
description = "Pybind11 bindings for the Abseil C++ Common Libraries";
homepage = "https://github.com/pybind/pybind11_abseil";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ wegank ];
};
}
|