2024-07-16 01:22:15 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
fetchpatch,
|
|
|
|
cmake,
|
|
|
|
abseil-cpp_202301,
|
|
|
|
protobuf_23,
|
|
|
|
pybind11,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage {
|
|
|
|
pname = "pybind11-protobuf";
|
2025-03-21 11:18:47 +01:00
|
|
|
version = "0-unstable-2024-11-01";
|
2024-07-16 01:22:15 +02:00
|
|
|
pyproject = false;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pybind";
|
|
|
|
repo = "pybind11_protobuf";
|
2025-03-21 11:18:47 +01:00
|
|
|
rev = "90b1a5b9de768340069c15b603d467c21cac5e0b";
|
|
|
|
hash = "sha256-3OuwRP9MhxmcfeDx+p74Fz6iLqi9FXbR3t3BtafesKk=";
|
2024-07-16 01:22:15 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "0006-Add-install-target-for-CMake-builds.patch";
|
2025-03-21 11:18:47 +01:00
|
|
|
url = "https://build.opensuse.org/public/source/openSUSE:Factory/pybind11_protobuf/0006-Add-install-target-for-CMake-builds.patch?rev=2";
|
|
|
|
hash = "sha256-tjaOr6f+JCRft0SWd0Zfte7FEOYOP7RrW0Vjz34rX6I=";
|
2024-07-16 01:22:15 +02:00
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "0007-CMake-Use-Python-Module.patch";
|
2025-03-21 11:18:47 +01:00
|
|
|
url = "https://build.opensuse.org/public/source/openSUSE:Factory/pybind11_protobuf/0007-CMake-Use-Python-Module.patch?rev=2";
|
2024-07-16 01:22:15 +02:00
|
|
|
hash = "sha256-A1dhfh31FMBHBdCfoYmQrInZvO/DeuVMUL57PpUHYfA=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
abseil-cpp_202301
|
|
|
|
protobuf_23
|
|
|
|
pybind11
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Pybind11 bindings for Google's Protocol Buffers";
|
|
|
|
homepage = "https://github.com/pybind/pybind11_protobuf";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ wegank ];
|
|
|
|
};
|
|
|
|
}
|