mirror of
https://github.com/denismhz/flake.git
synced 2025-11-09 16:16:23 +01:00
flake: update
This commit is contained in:
parent
7da23cb242
commit
11ea9ebc5d
12
flake.lock
12
flake.lock
|
|
@ -7,11 +7,11 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1675933616,
|
"lastModified": 1677714448,
|
||||||
"narHash": "sha256-/rczJkJHtx16IFxMmAWu5nNYcSXNg1YYXTHoGjLrLUA=",
|
"narHash": "sha256-Hq8qLs8xFu28aDjytfxjdC96bZ6pds21Yy09mSC156I=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "47478a4a003e745402acf63be7f9a092d51b83d7",
|
"rev": "dc531e3a9ce757041e1afaff8ee932725ca60002",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
@ -208,11 +208,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_2": {
|
"nixpkgs_2": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1675763311,
|
"lastModified": 1677932085,
|
||||||
"narHash": "sha256-bz0Q2H3mxsF1CUfk26Sl9Uzi8/HFjGFD/moZHz1HebU=",
|
"narHash": "sha256-+AB4dYllWig8iO6vAiGGYl0NEgmMgGHpy9gzWJ3322g=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "fab09085df1b60d6a0870c8a89ce26d5a4a708c2",
|
"rev": "3c5319ad3aa51551182ac82ea17ab1c6b0f0df89",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,29 @@ pkgs: {
|
||||||
nativeBuildInputs = old.nativeBuildInputs ++ [ final.pythonRelaxDepsHook ];
|
nativeBuildInputs = old.nativeBuildInputs ++ [ final.pythonRelaxDepsHook ];
|
||||||
pythonRelaxDeps = [ "protobuf" ];
|
pythonRelaxDeps = [ "protobuf" ];
|
||||||
});
|
});
|
||||||
|
markdown-it-py = prev.markdown-it-py.overrideAttrs (old: {
|
||||||
|
nativeBuildInputs = old.nativeBuildInputs ++ [ final.pythonRelaxDepsHook ];
|
||||||
|
pythonRelaxDeps = [ "linkify-it-py" ];
|
||||||
|
passthru = old.passthru // {
|
||||||
|
optional-dependencies = with final; {
|
||||||
|
linkify = [ linkify-it-py ];
|
||||||
|
plugins = [ mdit-py-plugins ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
});
|
||||||
|
filterpy = prev.filterpy.overrideAttrs (old: {
|
||||||
|
doInstallCheck = false;
|
||||||
|
});
|
||||||
|
shap = prev.shap.overrideAttrs (old: {
|
||||||
|
doInstallCheck = false;
|
||||||
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ final.packaging ];
|
||||||
|
pythonImportsCheck = [ "shap" ];
|
||||||
|
|
||||||
|
meta = old.meta // {
|
||||||
|
broken = false;
|
||||||
|
};
|
||||||
|
});
|
||||||
scikit-image = final.scikitimage;
|
scikit-image = final.scikitimage;
|
||||||
#overriding because of https://github.com/NixOS/nixpkgs/issues/196653
|
|
||||||
opencv4 = prev.opencv4.override { openblas = pkgs.blas; };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extraDeps = final: prev: let
|
extraDeps = final: prev: let
|
||||||
|
|
@ -35,21 +55,16 @@ pkgs: {
|
||||||
realesrgan = rmCallPackage ../../packages/realesrgan { opencv-python = final.opencv4; };
|
realesrgan = rmCallPackage ../../packages/realesrgan { opencv-python = final.opencv4; };
|
||||||
codeformer = callPackage ../../packages/codeformer { opencv-python = final.opencv4; };
|
codeformer = callPackage ../../packages/codeformer { opencv-python = final.opencv4; };
|
||||||
clipseg = rmCallPackage ../../packages/clipseg { opencv-python = final.opencv4; };
|
clipseg = rmCallPackage ../../packages/clipseg { opencv-python = final.opencv4; };
|
||||||
filterpy = callPackage ../../packages/filterpy { };
|
|
||||||
kornia = callPackage ../../packages/kornia { };
|
kornia = callPackage ../../packages/kornia { };
|
||||||
lpips = callPackage ../../packages/lpips { };
|
lpips = callPackage ../../packages/lpips { };
|
||||||
ffmpy = callPackage ../../packages/ffmpy { };
|
ffmpy = callPackage ../../packages/ffmpy { };
|
||||||
shap = callPackage ../../packages/shap { };
|
|
||||||
picklescan = callPackage ../../packages/picklescan { };
|
picklescan = callPackage ../../packages/picklescan { };
|
||||||
diffusers = callPackage ../../packages/diffusers { };
|
diffusers = callPackage ../../packages/diffusers { };
|
||||||
pypatchmatch = callPackage ../../packages/pypatchmatch { };
|
pypatchmatch = callPackage ../../packages/pypatchmatch { };
|
||||||
fonts = callPackage ../../packages/fonts { };
|
fonts = callPackage ../../packages/fonts { };
|
||||||
font-roboto = callPackage ../../packages/font-roboto { };
|
font-roboto = callPackage ../../packages/font-roboto { };
|
||||||
analytics-python = callPackage ../../packages/analytics-python { };
|
analytics-python = callPackage ../../packages/analytics-python { };
|
||||||
markdown-it-py = callPackage ../../packages/markdown-it-py { };
|
|
||||||
gradio = callPackage ../../packages/gradio { };
|
gradio = callPackage ../../packages/gradio { };
|
||||||
hatch-requirements-txt = callPackage ../../packages/hatch-requirements-txt { };
|
|
||||||
timm = callPackage ../../packages/timm { };
|
|
||||||
blip = callPackage ../../packages/blip { };
|
blip = callPackage ../../packages/blip { };
|
||||||
fairscale = callPackage ../../packages/fairscale { };
|
fairscale = callPackage ../../packages/fairscale { };
|
||||||
torch-fidelity = callPackage ../../packages/torch-fidelity { };
|
torch-fidelity = callPackage ../../packages/torch-fidelity { };
|
||||||
|
|
@ -58,7 +73,6 @@ pkgs: {
|
||||||
k-diffusion = callPackage ../../packages/k-diffusion { clean-fid = final.clean-fid; };
|
k-diffusion = callPackage ../../packages/k-diffusion { clean-fid = final.clean-fid; };
|
||||||
accelerate = callPackage ../../packages/accelerate { };
|
accelerate = callPackage ../../packages/accelerate { };
|
||||||
clip-anytorch = callPackage ../../packages/clip-anytorch { };
|
clip-anytorch = callPackage ../../packages/clip-anytorch { };
|
||||||
jsonmerge = callPackage ../../packages/jsonmerge { };
|
|
||||||
clean-fid = callPackage ../../packages/clean-fid { };
|
clean-fid = callPackage ../../packages/clean-fid { };
|
||||||
getpass-asterisk = callPackage ../../packages/getpass-asterisk { };
|
getpass-asterisk = callPackage ../../packages/getpass-asterisk { };
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ python3Packages.buildPythonPackage rec {
|
||||||
propagatedBuildInputs = with python3Packages; [
|
propagatedBuildInputs = with python3Packages; [
|
||||||
apispec
|
apispec
|
||||||
packaging
|
packaging
|
||||||
|
pyyaml
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = with python3Packages; [
|
nativeCheckInputs = with python3Packages; [
|
||||||
|
|
|
||||||
|
|
@ -1,40 +0,0 @@
|
||||||
{ lib
|
|
||||||
, buildPythonPackage
|
|
||||||
, fetchPypi
|
|
||||||
, numpy
|
|
||||||
, scipy
|
|
||||||
, matplotlib
|
|
||||||
, pytest
|
|
||||||
, isPy3k
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
|
||||||
version = "1.4.5";
|
|
||||||
pname = "filterpy";
|
|
||||||
disabled = !isPy3k;
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
extension = "zip";
|
|
||||||
sha256 = "4f2a4d39e4ea601b9ab42b2db08b5918a9538c168cff1c6895ae26646f3d73b1";
|
|
||||||
};
|
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
|
||||||
propagatedBuildInputs = [ numpy scipy matplotlib ];
|
|
||||||
|
|
||||||
# single test fails (even on master branch of repository)
|
|
||||||
# project does not use CI
|
|
||||||
checkPhase = ''
|
|
||||||
pytest --ignore=filterpy/common/tests/test_discretization.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
dontUsePythonImportsCheck = true;
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
homepage = "https://github.com/rlabbe/filterpy";
|
|
||||||
description = "Kalman filtering and optimal estimation library";
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = [ maintainers.costrouc ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
||||||
{ lib
|
|
||||||
, buildPythonPackage
|
|
||||||
, fetchPypi
|
|
||||||
, pythonOlder
|
|
||||||
, hatchling
|
|
||||||
, packaging
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "hatch-requirements-txt";
|
|
||||||
version = "0.2.0";
|
|
||||||
disabled = pythonOlder "3.6.1";
|
|
||||||
format = "pyproject";
|
|
||||||
|
|
||||||
# We use the Pypi release, as it provides prebuild webui assets,
|
|
||||||
# and its releases are also more frequent than github tags
|
|
||||||
src = fetchPypi {
|
|
||||||
pname = "hatch_requirements_txt";
|
|
||||||
inherit version;
|
|
||||||
sha256 = "sha256-I8z34vvPK7Mg9+Xg2nMgNcgeh5QFB0LV2j0iwzA1QGc=";
|
|
||||||
};
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
];
|
|
||||||
propagatedBuildInputs = [
|
|
||||||
hatchling
|
|
||||||
packaging
|
|
||||||
];
|
|
||||||
|
|
||||||
# TODO FIXME
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
homepage = "https://github.com/repo-helper/hatch-requirements-txt";
|
|
||||||
description = "Hatchling plugin to read project dependencies from requirements.txt";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,34 +0,0 @@
|
||||||
{ lib
|
|
||||||
, buildPythonPackage
|
|
||||||
, fetchPypi
|
|
||||||
, jsonschema
|
|
||||||
, pytestCheckHook
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "jsonmerge";
|
|
||||||
version = "1.8.0";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "a86bfc44f32f6a28b749743df8960a4ce1930666b3b73882513825f845cb9558";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ jsonschema ];
|
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook ];
|
|
||||||
|
|
||||||
disabledTests = [
|
|
||||||
# Fails with "Unresolvable JSON pointer"
|
|
||||||
"test_local_reference_in_meta"
|
|
||||||
"test_reference_in_meta"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Merge a series of JSON documents";
|
|
||||||
homepage = "https://github.com/avian2/jsonmerge";
|
|
||||||
changelog = "https://github.com/avian2/jsonmerge/blob/jsonmerge-${version}/ChangeLog";
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = with maintainers; [ emily ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,70 +0,0 @@
|
||||||
{ lib
|
|
||||||
, attrs
|
|
||||||
, buildPythonPackage
|
|
||||||
, fetchFromGitHub
|
|
||||||
, linkify-it-py
|
|
||||||
, mdit-py-plugins
|
|
||||||
, mdurl
|
|
||||||
, psutil
|
|
||||||
, pytest-benchmark
|
|
||||||
, pytest-regressions
|
|
||||||
, pytestCheckHook
|
|
||||||
, pythonOlder
|
|
||||||
, typing-extensions
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "markdown-it-py";
|
|
||||||
version = "2.1.0";
|
|
||||||
format = "flit";
|
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "executablebooks";
|
|
||||||
repo = pname;
|
|
||||||
rev = "refs/tags/v${version}";
|
|
||||||
sha256 = "sha256-6UATJho3SuIbLktZtFcDrCTWIAh52E+n5adcgl49un0=";
|
|
||||||
};
|
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
# Allow linkify-it-py v2.
|
|
||||||
# This only affects projects that depend on 'markdown-it-py[linkify]'
|
|
||||||
# https://github.com/executablebooks/markdown-it-py/pull/218
|
|
||||||
substituteInPlace pyproject.toml \
|
|
||||||
--replace "linkify-it-py~=1.0" "linkify-it-py>=1,<3"
|
|
||||||
'';
|
|
||||||
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
|
||||||
attrs
|
|
||||||
mdurl
|
|
||||||
] ++ lib.optional (pythonOlder "3.8") [
|
|
||||||
typing-extensions
|
|
||||||
];
|
|
||||||
|
|
||||||
passthru.optional-dependencies = {
|
|
||||||
linkify = [ linkify-it-py ];
|
|
||||||
plugins = [ mdit-py-plugins ];
|
|
||||||
};
|
|
||||||
|
|
||||||
checkInputs = [
|
|
||||||
linkify-it-py
|
|
||||||
psutil
|
|
||||||
pytest-benchmark
|
|
||||||
pytest-regressions
|
|
||||||
pytestCheckHook
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [
|
|
||||||
"markdown_it"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Markdown parser in Python";
|
|
||||||
homepage = "https://markdown-it-py.readthedocs.io/";
|
|
||||||
changelog = "https://github.com/executablebooks/markdown-it-py/blob/${src.rev}/CHANGELOG.md";
|
|
||||||
license = licenses.mit;
|
|
||||||
maintainers = with maintainers; [ bhipple ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,63 +0,0 @@
|
||||||
{ lib
|
|
||||||
, buildPythonPackage
|
|
||||||
, fetchPypi
|
|
||||||
, 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
|
|
||||||
}:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "shap";
|
|
||||||
version = "0.41.0";
|
|
||||||
disabled = isPy27;
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "sha256-pJ6k1lqtvIRaaV+j1+oL38jJKLjiE7D+7fWGit5LPKU=";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
|
||||||
numpy
|
|
||||||
scipy
|
|
||||||
scikit-learn
|
|
||||||
pandas
|
|
||||||
tqdm
|
|
||||||
slicer
|
|
||||||
numba
|
|
||||||
cloudpickle
|
|
||||||
packaging
|
|
||||||
];
|
|
||||||
|
|
||||||
passthru.optional-dependencies = {
|
|
||||||
plots = [ matplotlib ipython ];
|
|
||||||
others = [ lime ];
|
|
||||||
};
|
|
||||||
|
|
||||||
# TODO FIXME
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "A unified approach to explain the output of any machine learning model";
|
|
||||||
homepage = "https://github.com/slundberg/shap";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
# WARNING: This file was automatically generated. You should avoid editing it.
|
|
||||||
# If you run pynixify again, the file will be either overwritten or
|
|
||||||
# deleted, and you will lose the changes you made to it.
|
|
||||||
|
|
||||||
{ buildPythonPackage, fetchPypi, huggingface-hub, lib, pyyaml, torch
|
|
||||||
, torchvision }:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "timm";
|
|
||||||
version = "0.6.11";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "199zgg574gijw52jn4fhfzaqlbwhq0z8kav4k34xifssnr18hmh9";
|
|
||||||
};
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ torch torchvision pyyaml huggingface-hub ];
|
|
||||||
|
|
||||||
# TODO FIXME
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "(Unofficial) PyTorch Image Models";
|
|
||||||
homepage = "https://github.com/rwightman/pytorch-image-models";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -21,6 +21,7 @@ aipython3.buildPythonPackage {
|
||||||
inherit src;
|
inherit src;
|
||||||
propagatedBuildInputs = with aipython3; [
|
propagatedBuildInputs = with aipython3; [
|
||||||
numpy
|
numpy
|
||||||
|
dnspython
|
||||||
albumentations
|
albumentations
|
||||||
opencv4
|
opencv4
|
||||||
pudb
|
pudb
|
||||||
|
|
@ -62,7 +63,7 @@ aipython3.buildPythonPackage {
|
||||||
];
|
];
|
||||||
nativeBuildInputs = [ aipython3.pythonRelaxDepsHook ];
|
nativeBuildInputs = [ aipython3.pythonRelaxDepsHook ];
|
||||||
pythonRemoveDeps = [ "clip" "pyreadline3" "flaskwebgui" "opencv-python" ];
|
pythonRemoveDeps = [ "clip" "pyreadline3" "flaskwebgui" "opencv-python" ];
|
||||||
pythonRelaxDeps = [ "protobuf" "flask" "flask-socketio" "pytorch-lightning" ];
|
pythonRelaxDeps = [ "dnspython" "protobuf" "flask" "flask-socketio" "pytorch-lightning" ];
|
||||||
makeWrapperArgs = [
|
makeWrapperArgs = [
|
||||||
'' --run '
|
'' --run '
|
||||||
if [ -d "/usr/lib/wsl/lib" ]
|
if [ -d "/usr/lib/wsl/lib" ]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue