This reverts commit65a333600d. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
61 lines
1.7 KiB
Nix
61 lines
1.7 KiB
Nix
{
|
|
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 ];
|
|
};
|
|
}
|