mirror of
https://github.com/denismhz/flake.git
synced 2025-11-09 08:06:23 +01:00
?
This commit is contained in:
parent
a227d57d28
commit
7fc90fd614
|
|
@ -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,31 +35,32 @@ let
|
|||
cp libpatchmatch.so $out/lib/
|
||||
'';
|
||||
};
|
||||
in buildPythonPackage {
|
||||
pname = "pypatchmatch";
|
||||
version = "129863937a8ab37f6bbcec327c994c0f932abdbc";
|
||||
in
|
||||
buildPythonPackage {
|
||||
pname = "pypatchmatch";
|
||||
version = "129863937a8ab37f6bbcec327c994c0f932abdbc";
|
||||
|
||||
disabled = isPy27;
|
||||
disabled = isPy27;
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/invoke-ai/PyPatchMatch/archive/129863937a8ab37f6bbcec327c994c0f932abdbc.zip";
|
||||
sha256 = "sha256-kHYih9fjhtYfyNYzW4kwzm62N+GaOQQOOlSkO4PH3lw=";
|
||||
};
|
||||
src = fetchzip {
|
||||
url = "https://github.com/invoke-ai/PyPatchMatch/archive/129863937a8ab37f6bbcec327c994c0f932abdbc.zip";
|
||||
sha256 = "sha256-kHYih9fjhtYfyNYzW4kwzm62N+GaOQQOOlSkO4PH3lw=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
setuptools
|
||||
numpy
|
||||
pillow
|
||||
];
|
||||
propagatedBuildInputs = [
|
||||
setuptools
|
||||
numpy
|
||||
pillow
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
doCheck = false;
|
||||
|
||||
postInstall = ''
|
||||
cp ${libpatchmatch}/lib/libpatchmatch.so $out/lib/*/site-packages/patchmatch/
|
||||
'';
|
||||
postInstall = ''
|
||||
cp ${libpatchmatch}/lib/libpatchmatch.so $out/lib/*/site-packages/patchmatch/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "This library implements the PatchMatch based inpainting algorithm.";
|
||||
homepage = "https://github.com/invoke-ai/PyPatchMatch";
|
||||
};
|
||||
}
|
||||
meta = {
|
||||
description = "This library implements the PatchMatch based inpainting algorithm.";
|
||||
homepage = "https://github.com/invoke-ai/PyPatchMatch";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue