|
|
|
@ -8,7 +8,13 @@ self: super: |
|
|
|
|
{ |
|
|
|
|
automat = super.automat.overridePythonAttrs ( |
|
|
|
|
old: rec { |
|
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.m2r ]; |
|
|
|
|
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ self.m2r ]; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
aiohttp-swagger3 = super.aiohttp-swagger3.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.pytest-runner ]; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
@ -21,7 +27,7 @@ self: super: |
|
|
|
|
|
|
|
|
|
# Inputs copied from nixpkgs as ansible doesn't specify it's dependencies |
|
|
|
|
# in a correct manner. |
|
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ |
|
|
|
|
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ |
|
|
|
|
self.pycrypto |
|
|
|
|
self.paramiko |
|
|
|
|
self.jinja2 |
|
|
|
@ -170,7 +176,7 @@ self: super: |
|
|
|
|
dictdiffer = super.dictdiffer.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ self.pytest-runner ]; |
|
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.setuptools ]; |
|
|
|
|
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ self.setuptools ]; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
@ -178,7 +184,7 @@ self: super: |
|
|
|
|
super.django.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
propagatedNativeBuildInputs = (old.propagatedNativeBuildInputs or [ ]) |
|
|
|
|
++ [ pkgs.gettext ]; |
|
|
|
|
++ [ pkgs.gettext self.pytest-runner ]; |
|
|
|
|
} |
|
|
|
|
) |
|
|
|
|
); |
|
|
|
@ -193,6 +199,36 @@ self: super: |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
django-cors-headers = super.django-cors-headers.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.pytest-runner ]; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
django-hijack = super.django-hijack.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.pytest-runner ]; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
django-prometheus = super.django-prometheus.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.pytest-runner ]; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
django-rosetta = super.django-rosetta.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.pytest-runner ]; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
django-stubs-ext = super.django-stubs-ext.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
prePatch = (old.prePatch or "") + "touch ../LICENSE.txt"; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
dlib = super.dlib.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
# Parallel building enabled |
|
|
|
@ -227,6 +263,16 @@ self: super: |
|
|
|
|
''; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
# remove eth-hash dependency because eth-hash also depends on eth-utils causing a cycle. |
|
|
|
|
eth-utils = super.eth-utils.overridePythonAttrs (old: { |
|
|
|
|
propagatedBuildInputs = |
|
|
|
|
builtins.filter (i: i.pname != "eth-hash") old.propagatedBuildInputs; |
|
|
|
|
preConfigure = '' |
|
|
|
|
${old.preConfigure or ""} |
|
|
|
|
sed -i '/eth-hash/d' setup.py |
|
|
|
|
''; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
faker = super.faker.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ self.pytest-runner ]; |
|
|
|
@ -244,6 +290,10 @@ self: super: |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
fastecdsa = super.fastecdsa.overridePythonAttrs (old: { |
|
|
|
|
buildInputs = old.buildInputs ++ [ pkgs.gmp.dev ]; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
fastparquet = super.fastparquet.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ self.pytest-runner ]; |
|
|
|
@ -313,11 +363,11 @@ self: super: |
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.pkg-config ]; |
|
|
|
|
buildInputs = |
|
|
|
|
(old.buildInputs or [ ]) |
|
|
|
|
++ [ pkgs.hdf5 self.pkg-config self.cython ] |
|
|
|
|
++ [ pkgs.hdf5 self.pkgconfig self.cython ] |
|
|
|
|
++ lib.optional mpiSupport mpi |
|
|
|
|
; |
|
|
|
|
propagatedBuildInputs = |
|
|
|
|
old.propagatedBuildInputs |
|
|
|
|
(old.propagatedBuildInputs or [ ]) |
|
|
|
|
++ lib.optionals mpiSupport [ self.mpi4py self.openssh ] |
|
|
|
|
; |
|
|
|
|
preBuild = if mpiSupport then "export CC=${mpi}/bin/mpicc" else ""; |
|
|
|
@ -333,9 +383,25 @@ self: super: |
|
|
|
|
) else old |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
hid = super.hid.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
postPatch = '' |
|
|
|
|
found= |
|
|
|
|
for name in libhidapi-hidraw libhidapi-libusb libhidapi-iohidmanager libhidapi; do |
|
|
|
|
full_path=${pkgs.hidapi.out}/lib/$name${pkgs.stdenv.hostPlatform.extensions.sharedLibrary} |
|
|
|
|
if test -f $full_path; then |
|
|
|
|
found=t |
|
|
|
|
sed -i -e "s|'$name\..*'|'$full_path'|" hid/__init__.py |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|
test -n "$found" || { echo "ERROR: No known libraries found in ${pkgs.hidapi.out}/lib, please update/fix this build expression."; exit 1; } |
|
|
|
|
''; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
horovod = super.horovod.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ pkgs.mpi ]; |
|
|
|
|
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ pkgs.mpi ]; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
@ -399,7 +465,10 @@ self: super: |
|
|
|
|
# importlib-metadata has an incomplete dependency specification |
|
|
|
|
importlib-metadata = super.importlib-metadata.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ lib.optional self.python.isPy2 self.pathlib2; |
|
|
|
|
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ lib.optional self.python.isPy2 self.pathlib2; |
|
|
|
|
|
|
|
|
|
# disable the removal of pyproject.toml, required because of setuptools_scm |
|
|
|
|
dontPreferSetupPy = true; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
@ -411,7 +480,7 @@ self: super: |
|
|
|
|
|
|
|
|
|
isort = super.isort.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.setuptools ]; |
|
|
|
|
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ self.setuptools ]; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
@ -453,7 +522,7 @@ self: super: |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
jsonslicer = super.jsonslicer.overridePythonAttrs (old: { |
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.pkg-config ]; |
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.pkgconfig ]; |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.yajl ]; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -487,7 +556,7 @@ self: super: |
|
|
|
|
|
|
|
|
|
lap = super.lap.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ |
|
|
|
|
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ |
|
|
|
|
self.numpy |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
@ -512,7 +581,7 @@ self: super: |
|
|
|
|
|
|
|
|
|
# Set directory containing llvm-config binary |
|
|
|
|
preConfigure = '' |
|
|
|
|
export LLVM_CONFIG=${pkgs.llvm.dev}/bin/llvm-config |
|
|
|
|
export LLVM_CONFIG=${pkgs.llvm}/bin/llvm-config |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
__impureHostDeps = lib.optionals pkgs.stdenv.isDarwin [ "/usr/lib/libm.dylib" ]; |
|
|
|
@ -523,7 +592,7 @@ self: super: |
|
|
|
|
|
|
|
|
|
lockfile = super.lockfile.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.pbr ]; |
|
|
|
|
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ self.pbr ]; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
@ -570,7 +639,7 @@ self: super: |
|
|
|
|
EOF |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ |
|
|
|
|
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ |
|
|
|
|
pkgs.libpng |
|
|
|
|
pkgs.freetype |
|
|
|
|
] |
|
|
|
@ -650,7 +719,7 @@ self: super: |
|
|
|
|
}; |
|
|
|
|
in |
|
|
|
|
{ |
|
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ pkgs.mpi ]; |
|
|
|
|
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ pkgs.mpi ]; |
|
|
|
|
enableParallelBuilding = true; |
|
|
|
|
preBuild = '' |
|
|
|
|
ln -sf ${cfg} mpi.cfg |
|
|
|
@ -670,8 +739,15 @@ self: super: |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
mypy = super.mypy.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
MYPY_USE_MYPYC = pkgs.stdenv.buildPlatform.is64bit; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
mysqlclient = super.mysqlclient.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.libmysqlclient ]; |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.libmysqlclient ]; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
@ -682,7 +758,7 @@ self: super: |
|
|
|
|
self.cython |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ |
|
|
|
|
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ |
|
|
|
|
pkgs.zlib |
|
|
|
|
pkgs.netcdf |
|
|
|
|
pkgs.hdf5 |
|
|
|
@ -769,7 +845,7 @@ self: super: |
|
|
|
|
in |
|
|
|
|
{ |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.sqlite ]; |
|
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs or [ ] |
|
|
|
|
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) |
|
|
|
|
++ lib.optional withPostgres self.psycopg2 |
|
|
|
|
++ lib.optional withMysql self.mysql-connector; |
|
|
|
|
} |
|
|
|
@ -777,7 +853,7 @@ self: super: |
|
|
|
|
|
|
|
|
|
pillow = super.pillow.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
nativeBuildInputs = [ pkgs.pkg-config ] ++ (old.nativeBuildInputs or [ ]); |
|
|
|
|
nativeBuildInputs = [ pkgs.pkg-config self.pytest-runner ] ++ (old.nativeBuildInputs or [ ]); |
|
|
|
|
buildInputs = with pkgs; [ freetype libjpeg zlib libtiff libwebp tcl lcms2 ] ++ (old.buildInputs or [ ]); |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
@ -924,7 +1000,7 @@ self: super: |
|
|
|
|
pkgs.pkg-config |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ |
|
|
|
|
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ |
|
|
|
|
pkgs.cairo |
|
|
|
|
pkgs.xlibsWrapper |
|
|
|
|
]; |
|
|
|
@ -1028,6 +1104,16 @@ self: super: |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
pyproject-flake8 = super.pyproject-flake8.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ self.flit-core ]; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
pytezos = super.pytezos.override (old: { |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.libsodium ]; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
python-bugzilla = super.python-bugzilla.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ |
|
|
|
@ -1214,6 +1300,12 @@ self: super: |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
python-snappy = super.python-snappy.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.snappy ]; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
ffmpeg-python = super.ffmpeg-python.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ self.pytest-runner ]; |
|
|
|
@ -1228,10 +1320,20 @@ self: super: |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
pyusb = super.pyusb.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
postPatch = '' |
|
|
|
|
libusb=${pkgs.libusb1.out}/lib/libusb-1.0${pkgs.stdenv.hostPlatform.extensions.sharedLibrary} |
|
|
|
|
test -f $libusb || { echo "ERROR: $libusb doesn't exist, please update/fix this build expression."; exit 1; } |
|
|
|
|
sed -i -e "s|find_library=None|find_library=lambda _:\"$libusb\"|" usb/backend/libusb1.py |
|
|
|
|
''; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
pyzmq = super.pyzmq.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.pkg-config ]; |
|
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ pkgs.zeromq ]; |
|
|
|
|
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ pkgs.zeromq ]; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
@ -1298,7 +1400,7 @@ self: super: |
|
|
|
|
old: |
|
|
|
|
if old.format != "wheel" then { |
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.gfortran ]; |
|
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.pybind11 ]; |
|
|
|
|
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ self.pybind11 ]; |
|
|
|
|
setupPyBuildFlags = [ "--fcompiler='gnu95'" ]; |
|
|
|
|
enableParallelBuilding = true; |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ self.numpy.blas ]; |
|
|
|
@ -1329,6 +1431,17 @@ self: super: |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
secp256k1 = super.secp256k1.overridePythonAttrs (old: { |
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ pkgs.pkgconfig pkgs.autoconf pkgs.automake pkgs.libtool ]; |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ self.pytest-runner ]; |
|
|
|
|
doCheck = false; |
|
|
|
|
# Local setuptools versions like "x.y.post0" confuse an internal check |
|
|
|
|
postPatch = '' |
|
|
|
|
substituteInPlace setup.py \ |
|
|
|
|
--replace 'setuptools_version.' '"${self.setuptools.version}".' |
|
|
|
|
''; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
shapely = super.shapely.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ pkgs.geos self.cython ]; |
|
|
|
@ -1387,6 +1500,14 @@ self: super: |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
# The tokenizers build requires a complex rust setup (cf. nixpkgs override) |
|
|
|
|
# |
|
|
|
|
# Instead of providing a full source build, we use a wheel to keep |
|
|
|
|
# the complexity manageable for now. |
|
|
|
|
tokenizers = super.tokenizers.override { |
|
|
|
|
preferWheel = true; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
torch = lib.makeOverridable |
|
|
|
|
({ enableCuda ? false |
|
|
|
|
, cudatoolkit ? pkgs.cudatoolkit_10_1 |
|
|
|
@ -1415,11 +1536,34 @@ self: super: |
|
|
|
|
propagatedBuildInputs = [ |
|
|
|
|
self.numpy |
|
|
|
|
self.future |
|
|
|
|
self.typing-extensions |
|
|
|
|
]; |
|
|
|
|
}) |
|
|
|
|
) |
|
|
|
|
{ }; |
|
|
|
|
|
|
|
|
|
torchvision = lib.makeOverridable |
|
|
|
|
({ enableCuda ? false |
|
|
|
|
, cudatoolkit ? pkgs.cudatoolkit_10_1 |
|
|
|
|
, pkg ? super.torchvision |
|
|
|
|
}: pkg.overrideAttrs (old: { |
|
|
|
|
|
|
|
|
|
# without that autoPatchelfHook will fail because cudatoolkit is not in LD_LIBRARY_PATH |
|
|
|
|
autoPatchelfIgnoreMissingDeps = true; |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) |
|
|
|
|
++ [ self.torch ] |
|
|
|
|
++ lib.optionals enableCuda [ |
|
|
|
|
cudatoolkit |
|
|
|
|
]; |
|
|
|
|
preConfigure = |
|
|
|
|
if (enableCuda) then '' |
|
|
|
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${self.torch}/${self.python.sitePackages}/torch/lib:${lib.makeLibraryPath [ cudatoolkit "${cudatoolkit}" ]}" |
|
|
|
|
'' else '' |
|
|
|
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${self.torch}/${self.python.sitePackages}/torch/lib" |
|
|
|
|
''; |
|
|
|
|
})) |
|
|
|
|
{ }; |
|
|
|
|
|
|
|
|
|
typeguard = super.typeguard.overridePythonAttrs (old: { |
|
|
|
|
postPatch = '' |
|
|
|
|
substituteInPlace setup.py \ |
|
|
|
@ -1427,12 +1571,18 @@ self: super: |
|
|
|
|
''; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
typed_ast = super.typed-ast.overridePythonAttrs (old: { |
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ |
|
|
|
|
self.pytest-runner |
|
|
|
|
]; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
# nix uses a dash, poetry uses an underscore |
|
|
|
|
typing_extensions = super.typing_extensions or self.typing-extensions; |
|
|
|
|
|
|
|
|
|
urwidtrees = super.urwidtrees.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ |
|
|
|
|
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ |
|
|
|
|
self.urwid |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
@ -1476,6 +1626,7 @@ self: super: |
|
|
|
|
weasyprint = super.weasyprint.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
inherit (pkgs.python3.pkgs.weasyprint) patches; |
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.pytest-runner ]; |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ self.pytest-runner ]; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
@ -1524,7 +1675,7 @@ self: super: |
|
|
|
|
) else super.zipp |
|
|
|
|
).overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ |
|
|
|
|
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ |
|
|
|
|
self.toml |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
@ -1551,9 +1702,38 @@ self: super: |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
psutil = super.psutil.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ |
|
|
|
|
lib.optional stdenv.isDarwin pkgs.darwin.apple_sdk.frameworks.IOKit; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
sentencepiece = super.sentencepiece.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
dontUseCmakeConfigure = true; |
|
|
|
|
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ |
|
|
|
|
pkgs.pkg-config |
|
|
|
|
pkgs.cmake |
|
|
|
|
pkgs.gperftools |
|
|
|
|
]; |
|
|
|
|
buildInputs = (old.buildInputs or [ ]) ++ [ |
|
|
|
|
pkgs.sentencepiece |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
sentence-transformers = super.sentence-transformers.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
buildInputs = |
|
|
|
|
(old.buildInputs or [ ]) |
|
|
|
|
++ [ self.typing-extensions ]; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
supervisor = super.supervisor.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ |
|
|
|
|
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ |
|
|
|
|
self.meld3 |
|
|
|
|
self.setuptools |
|
|
|
|
]; |
|
|
|
@ -1562,7 +1742,7 @@ self: super: |
|
|
|
|
|
|
|
|
|
cytoolz = super.cytoolz.overridePythonAttrs ( |
|
|
|
|
old: { |
|
|
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ self.toolz ]; |
|
|
|
|
propagatedBuildInputs = (old.propagatedBuildInputs or [ ]) ++ [ self.toolz ]; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
@ -1607,5 +1787,52 @@ self: super: |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
wxpython = super.wxpython.overridePythonAttrs (old: |
|
|
|
|
let |
|
|
|
|
localPython = self.python.withPackages (ps: with ps; [ |
|
|
|
|
setuptools |
|
|
|
|
numpy |
|
|
|
|
six |
|
|
|
|
]); |
|
|
|
|
in |
|
|
|
|
{ |
|
|
|
|
DOXYGEN = "${pkgs.doxygen}/bin/doxygen"; |
|
|
|
|
|
|
|
|
|
nativeBuildInputs = with pkgs; [ |
|
|
|
|
which |
|
|
|
|
doxygen |
|
|
|
|
gtk3 |
|
|
|
|
pkg-config |
|
|
|
|
autoPatchelfHook |
|
|
|
|
] ++ (old.nativeBuildInputs or [ ]); |
|
|
|
|
|
|
|
|
|
buildInputs = with pkgs; [ |
|
|
|
|
gtk3 |
|
|
|
|
webkitgtk |
|
|
|
|
ncurses |
|
|
|
|
SDL2 |
|
|
|
|
xorg.libXinerama |
|
|
|
|
xorg.libSM |
|
|
|
|
xorg.libXxf86vm |
|
|
|
|
xorg.libXtst |
|
|
|
|
xorg.xorgproto |
|
|
|
|
gst_all_1.gstreamer |
|
|
|
|
gst_all_1.gst-plugins-base |
|
|
|
|
libGLU |
|
|
|
|
libGL |
|
|
|
|
libglvnd |
|
|
|
|
mesa |
|
|
|
|
] ++ old.buildInputs; |
|
|
|
|
|
|
|
|
|
buildPhase = '' |
|
|
|
|
${localPython.interpreter} build.py -v build_wx |
|
|
|
|
${localPython.interpreter} build.py -v dox etg --nodoc sip |
|
|
|
|
${localPython.interpreter} build.py -v build_py |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
installPhase = '' |
|
|
|
|
${localPython.interpreter} setup.py install --skip-build --prefix=$out |
|
|
|
|
''; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|