mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
Add more overrides
This adds overrides for the following python packages - astroid - h5py - jupyter - openexr - rockset - tensorpack
This commit is contained in:
parent
ca2c6fffc4
commit
df5744ebf0
1 changed files with 51 additions and 0 deletions
|
@ -6,6 +6,14 @@
|
|||
self: super:
|
||||
|
||||
{
|
||||
astroid = super.astroid.overrideAttrs (
|
||||
old: rec {
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace 'setup_requires=["pytest-runner"],' 'setup_requires=[],'
|
||||
'';
|
||||
}
|
||||
);
|
||||
|
||||
av = super.av.overrideAttrs (
|
||||
old: {
|
||||
nativeBuildInputs = old.nativeBuildInputs ++ [
|
||||
|
@ -96,6 +104,17 @@ self: super:
|
|||
}
|
||||
);
|
||||
|
||||
h5py = super.h5py.overrideAttrs (
|
||||
old: rec {
|
||||
nativeBuildInputs = old.nativeBuildInputs ++ [ pkgs.pkgconfig ];
|
||||
buildInputs = old.buildInputs ++ [ pkgs.hdf5 self.pkgconfig self.cython ];
|
||||
configure_flags = "--hdf5=${pkgs.hdf5}";
|
||||
postConfigure = ''
|
||||
${self.python.executable} setup.py configure ${configure_flags}
|
||||
'';
|
||||
}
|
||||
);
|
||||
|
||||
horovod = super.horovod.overrideAttrs (
|
||||
old: {
|
||||
propagatedBuildInputs = old.propagatedBuildInputs ++ [ pkgs.openmpi ];
|
||||
|
@ -109,6 +128,15 @@ self: super:
|
|||
}
|
||||
);
|
||||
|
||||
jupyter = super.jupyter.overrideAttrs (
|
||||
old: rec {
|
||||
# jupyter is a meta-package. Everything relevant comes from the
|
||||
# dependencies. It does however have a jupyter.py file that conflicts
|
||||
# with jupyter-core so this meta solves this conflict.
|
||||
meta.priority = 100;
|
||||
}
|
||||
);
|
||||
|
||||
lap = super.lap.overrideAttrs (
|
||||
old: {
|
||||
propagatedBuildInputs = old.propagatedBuildInputs ++ [
|
||||
|
@ -264,6 +292,13 @@ self: super:
|
|||
}
|
||||
);
|
||||
|
||||
openexr = super.openexr.overrideAttrs (
|
||||
old: rec {
|
||||
buildInputs = old.buildInputs ++ [ pkgs.openexr pkgs.ilmbase ];
|
||||
NIX_CFLAGS_COMPILE = [ "-I${pkgs.openexr.dev}/include/OpenEXR" "-I${pkgs.ilmbase.dev}/include/OpenEXR" ];
|
||||
}
|
||||
);
|
||||
|
||||
peewee = super.peewee.overridePythonAttrs (
|
||||
old: let
|
||||
withPostgres = old.passthru.withPostgres or false;
|
||||
|
@ -476,6 +511,14 @@ self: super:
|
|||
}
|
||||
);
|
||||
|
||||
rockset = super.rockset.overrideAttrs (
|
||||
old: rec {
|
||||
postPatch = ''
|
||||
cp ./setup_rockset.py ./setup.py
|
||||
'';
|
||||
}
|
||||
);
|
||||
|
||||
scaleapi = super.scaleapi.overrideAttrs (
|
||||
old: {
|
||||
postPatch = ''
|
||||
|
@ -542,6 +585,14 @@ self: super:
|
|||
}
|
||||
);
|
||||
|
||||
tensorpack = super.tensorpack.overrideAttrs (
|
||||
old: {
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg --replace "# will call find_packages()" ""
|
||||
'';
|
||||
}
|
||||
);
|
||||
|
||||
urwidtrees = super.urwidtrees.overrideAttrs (
|
||||
old: {
|
||||
propagatedBuildInputs = old.propagatedBuildInputs ++ [
|
||||
|
|
Loading…
Add table
Reference in a new issue