This commit is contained in:
Denis Manherz 2024-08-11 19:17:02 +02:00
parent a227d57d28
commit 7fc90fd614

View file

@ -1,46 +1,19 @@
{ lib
, buildPythonPackage
, pkg-config
, fetchPypi
, stdenv
, fetchzip
, setuptools
, writeText
, isPy27
, pytestCheckHook
, pytest-mpl
, numpy
, scipy
, scikit-learn
, pandas
, transformers
, opencv4
, lightgbm
, catboost
, pyspark
, sentencepiece
, tqdm
, slicer
, numba
, matplotlib
, nose
, lime
, cloudpickle
, ipython
, packaging
, pillow
, requests
, regex
, importlib-metadata
, huggingface-hub
, symlinkJoin
}:
let
{
buildPythonPackage,
pkg-config,
stdenv,
fetchzip,
setuptools,
isPy27,
numpy,
opencv4,
pillow,
symlinkJoin,
}: let
# https://github.com/invoke-ai/InvokeAI/blob/34f8117241dc961e78929bda30ce3b4f19e707cf/docs/installation/060_INSTALL_PATCHMATCH.md
opencv4Fixed = symlinkJoin {
name = "opencv4Fixed";
paths = [ opencv4 ];
paths = [opencv4];
postBuild = ''
cp -r $out/lib/pkgconfig/opencv4.pc $out/lib/pkgconfig/opencv.pc
'';
@ -62,7 +35,8 @@ let
cp libpatchmatch.so $out/lib/
'';
};
in buildPythonPackage {
in
buildPythonPackage {
pname = "pypatchmatch";
version = "129863937a8ab37f6bbcec327c994c0f932abdbc";
@ -89,4 +63,4 @@ in buildPythonPackage {
description = "This library implements the PatchMatch based inpainting algorithm.";
homepage = "https://github.com/invoke-ai/PyPatchMatch";
};
}
}