|
|
|
@ -250,6 +250,15 @@ self: super: |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
fiona = super.fiona.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.gdal_2 ]; |
|
|
|
|
nativeBuildInputs = [ |
|
|
|
|
pkgs.gdal_2 # for gdal-config |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
gdal = super.gdal.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
preBuild = (old.preBuild or "") + '' |
|
|
|
@ -266,6 +275,23 @@ self: super: |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
grpcio = super.grpcio.overridePythonAttrs (old: { |
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.cython pkgs.pkg-config ]; |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.c-ares pkgs.openssl pkgs.zlib ]; |
|
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ]; |
|
|
|
|
|
|
|
|
|
GRPC_BUILD_WITH_BORING_SSL_ASM = ""; |
|
|
|
|
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL = 1; |
|
|
|
|
GRPC_PYTHON_BUILD_SYSTEM_ZLIB = 1; |
|
|
|
|
GRPC_PYTHON_BUILD_SYSTEM_CARES = 1; |
|
|
|
|
DISABLE_LIBC_COMPATIBILITY = 1; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
grpcio-tools = super.grpcio-tools.overridePythonAttrs (old: { |
|
|
|
|
outputs = [ "out" "dev" ]; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
h3 = super.h3.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
preBuild = (old.preBuild or "") + '' |
|
|
|
@ -277,14 +303,34 @@ self: super: |
|
|
|
|
|
|
|
|
|
h5py = super.h5py.overridePythonAttrs ( |
|
|
|
|
old: |
|
|
|
|
if old.format != "wheel" then rec { |
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.pkg-config ]; |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.hdf5 self.pkgconfig self.cython ]; |
|
|
|
|
configure_flags = "--hdf5=${pkgs.hdf5}"; |
|
|
|
|
postConfigure = '' |
|
|
|
|
${self.python.executable} setup.py configure ${configure_flags} |
|
|
|
|
''; |
|
|
|
|
} else old |
|
|
|
|
if old.format != "wheel" then |
|
|
|
|
( |
|
|
|
|
let |
|
|
|
|
mpi = pkgs.hdf5.mpi; |
|
|
|
|
mpiSupport = pkgs.hdf5.mpiSupport; |
|
|
|
|
in |
|
|
|
|
{ |
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.pkg-config ]; |
|
|
|
|
buildInputs = |
|
|
|
|
(old.buildInputs or [ ]) |
|
|
|
|
++ [ pkgs.hdf5 self.pkgconfig self.cython ] |
|
|
|
|
++ lib.optional mpiSupport mpi |
|
|
|
|
; |
|
|
|
|
propagatedBuildInputs = |
|
|
|
|
old.propagatedBuildInputs |
|
|
|
|
++ lib.optionals mpiSupport [ self.mpi4py self.openssh ] |
|
|
|
|
; |
|
|
|
|
preBuild = if mpiSupport then "export CC=${mpi}/bin/mpicc" else ""; |
|
|
|
|
HDF5_DIR = "${pkgs.hdf5}"; |
|
|
|
|
HDF5_MPI = if mpiSupport then "ON" else "OFF"; |
|
|
|
|
# avoid strict pinning of numpy |
|
|
|
|
postPatch = '' |
|
|
|
|
substituteInPlace setup.py \ |
|
|
|
|
--replace "numpy ==" "numpy >=" |
|
|
|
|
''; |
|
|
|
|
pythonImportsCheck = [ "h5py" ]; |
|
|
|
|
} |
|
|
|
|
) else old |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
horovod = super.horovod.overridePythonAttrs ( |
|
|
|
@ -618,6 +664,12 @@ self: super: |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
munch = super.munch.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ self.pbr ]; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
mysqlclient = super.mysqlclient.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.libmysqlclient ]; |
|
|
|
@ -939,6 +991,13 @@ self: super: |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
pygeos = super.pygeos.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.geos ]; |
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.geos ]; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
pygobject = super.pygobject.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.pkg-config ]; |
|
|
|
@ -1226,6 +1285,15 @@ self: super: |
|
|
|
|
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ self.setuptools ]; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
rtree = super.rtree.overridePythonAttrs (old: { |
|
|
|
|
propagatedNativeBuildInputs = (old.propagatedNativeBuildInputs or [ ]) ++ [ pkgs.libspatialindex ]; |
|
|
|
|
postPatch = '' |
|
|
|
|
substituteInPlace rtree/finder.py --replace \ |
|
|
|
|
"find_library('spatialindex_c')" \ |
|
|
|
|
"'${pkgs.libspatialindex}/lib/libspatialindex_c${pkgs.stdenv.hostPlatform.extensions.sharedLibrary}'" |
|
|
|
|
''; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
scipy = super.scipy.overridePythonAttrs ( |
|
|
|
|
old: |
|
|
|
|
if old.format != "wheel" then { |
|
|
|
|