python3Packages.pybind11: use finalAttrs
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
cmake,
|
||||
ninja,
|
||||
scikit-build-core,
|
||||
pybind11,
|
||||
boost,
|
||||
eigen,
|
||||
python,
|
||||
@@ -29,7 +28,7 @@ let
|
||||
};
|
||||
} ./setup-hook.sh;
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "pybind11";
|
||||
version = "3.0.2";
|
||||
pyproject = true;
|
||||
@@ -37,14 +36,14 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "pybind";
|
||||
repo = "pybind11";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-T09+cS8J3wG1NisgwBUh6g5KreOp9d5U1qOKS6x1pKk=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
cmake
|
||||
ninja
|
||||
pybind11.passthru.scikit-build-core-no-tests
|
||||
finalAttrs.passthru.scikit-build-core-no-tests
|
||||
];
|
||||
|
||||
buildInputs = lib.optionals buildTests [
|
||||
@@ -105,7 +104,7 @@ buildPythonPackage rec {
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/pybind/pybind11";
|
||||
changelog = "https://github.com/pybind/pybind11/blob/${src.tag}/docs/changelog.md";
|
||||
changelog = "https://github.com/pybind/pybind11/blob/${finalAttrs.src.tag}/docs/changelog.md";
|
||||
description = "Seamless operability between C++11 and Python";
|
||||
mainProgram = "pybind11-config";
|
||||
longDescription = ''
|
||||
@@ -119,4 +118,4 @@ buildPythonPackage rec {
|
||||
dotlambda
|
||||
];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user