Merge pull request #116530 from adisbladis/poetry2nix-1_16_1
poetry2nix: 1.16.0 -> 1.16.1
This commit is contained in:
commit
6af448d9e5
@ -5,7 +5,7 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
# Poetry2nix version
|
# Poetry2nix version
|
||||||
version = "1.16.0";
|
version = "1.16.1";
|
||||||
|
|
||||||
inherit (poetryLib) isCompatible readTOML moduleName;
|
inherit (poetryLib) isCompatible readTOML moduleName;
|
||||||
|
|
||||||
|
@ -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 (
|
gdal = super.gdal.overridePythonAttrs (
|
||||||
old: {
|
old: {
|
||||||
preBuild = (old.preBuild or "") + ''
|
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 (
|
h3 = super.h3.overridePythonAttrs (
|
||||||
old: {
|
old: {
|
||||||
preBuild = (old.preBuild or "") + ''
|
preBuild = (old.preBuild or "") + ''
|
||||||
@ -277,14 +303,34 @@ self: super:
|
|||||||
|
|
||||||
h5py = super.h5py.overridePythonAttrs (
|
h5py = super.h5py.overridePythonAttrs (
|
||||||
old:
|
old:
|
||||||
if old.format != "wheel" then rec {
|
if old.format != "wheel" then
|
||||||
|
(
|
||||||
|
let
|
||||||
|
mpi = pkgs.hdf5.mpi;
|
||||||
|
mpiSupport = pkgs.hdf5.mpiSupport;
|
||||||
|
in
|
||||||
|
{
|
||||||
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.pkg-config ];
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.pkg-config ];
|
||||||
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.hdf5 self.pkgconfig self.cython ];
|
buildInputs =
|
||||||
configure_flags = "--hdf5=${pkgs.hdf5}";
|
(old.buildInputs or [ ])
|
||||||
postConfigure = ''
|
++ [ pkgs.hdf5 self.pkgconfig self.cython ]
|
||||||
${self.python.executable} setup.py configure ${configure_flags}
|
++ 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 >="
|
||||||
'';
|
'';
|
||||||
} else old
|
pythonImportsCheck = [ "h5py" ];
|
||||||
|
}
|
||||||
|
) else old
|
||||||
);
|
);
|
||||||
|
|
||||||
horovod = super.horovod.overridePythonAttrs (
|
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 (
|
mysqlclient = super.mysqlclient.overridePythonAttrs (
|
||||||
old: {
|
old: {
|
||||||
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.libmysqlclient ];
|
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 (
|
pygobject = super.pygobject.overridePythonAttrs (
|
||||||
old: {
|
old: {
|
||||||
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.pkg-config ];
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.pkg-config ];
|
||||||
@ -1226,6 +1285,15 @@ self: super:
|
|||||||
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ self.setuptools ];
|
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 (
|
scipy = super.scipy.overridePythonAttrs (
|
||||||
old:
|
old:
|
||||||
if old.format != "wheel" then {
|
if old.format != "wheel" then {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user