Merge pull request #1431 from Kiskae/patch-6

pip-build-hook: enable validation of build dependencies
This commit is contained in:
Phillip Cloud 2024-05-02 08:45:06 -04:00 committed by GitHub
commit 53ba7961c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 2 deletions

View file

@ -25864,7 +25864,10 @@
], ],
"uri-template": [ "uri-template": [
"setuptools", "setuptools",
"setuptools-scm" {
"buildSystem": "setuptools-scm",
"from": "1.3.0"
}
], ],
"uritemplate": [ "uritemplate": [
"setuptools" "setuptools"

View file

@ -1993,7 +1993,12 @@ lib.composeManyExtensions [
# For OSX, we need to add a dependency on libcxx, which provides # For OSX, we need to add a dependency on libcxx, which provides
# `complex.h` and other libraries that pandas depends on to build. # `complex.h` and other libraries that pandas depends on to build.
postPatch = lib.optionalString (!(old.src.isWheel or false) && stdenv.isDarwin) '' postPatch = ''
if [ -f pyproject.toml ]; then
substituteInPlace pyproject.toml \
--replace 'meson-python==0.13.1' 'meson-python'
fi
'' + lib.optionalString (!(old.src.isWheel or false) && stdenv.isDarwin) ''
if [ -f setup.py ]; then if [ -f setup.py ]; then
cpp_sdk="${lib.getDev pkgs.libcxx}/include/c++/v1"; cpp_sdk="${lib.getDev pkgs.libcxx}/include/c++/v1";
echo "Adding $cpp_sdk to the setup.py common_include variable" echo "Adding $cpp_sdk to the setup.py common_include variable"