apply patch from neuro

This commit is contained in:
2026-02-20 12:51:32 +00:00
parent 799ad9a15d
commit 63a7fd716f
8 changed files with 283 additions and 48 deletions

View File

@@ -117,6 +117,7 @@ in {
py3-modulegraph = pkgs.callPackage ./py3-modulegraph.nix {};
py3-swifter = pkgs.callPackage ./py3-swifter.nix {};
py3-aiogram-newsletter = pkgs.callPackage ./py3-swifter.nix {};
py3-openai-shap-e = pkgs.callPackage ./py3-openai-shap-e.nix {};
nvim-alias = pkgs.callPackage ./nvim-alias.nix {};
bolt-unpack = pkgs.callPackage ./bolt-unpack.nix {};
nvim-pager = pkgs.callPackage ./nvim-pager.nix {};

View File

@@ -0,0 +1,40 @@
{
lib,
python3Packages,
fetchFromGitHub,
}: python3Packages.buildPythonPackage rec {
pname = "shap-e";
version = "1.0";
src = fetchFromGitHub {
inherit pname version;
owner = "openai";
repo = "shap-e";
rev = "50131012ee11c9d2617f3886c10f000d3c7a3b43";
sha256 = "sha256-RN4dARvz5fzoAFtEOdHWDuMqchCBuoGjsBv/yeWWai0=";
};
propagatedBuildInputs = with python3Packages; [
filelock
pillow
torch
fire
humanize
requests
tqdm
matplotlib
scikit-image
scipy
numpy
blobfile
clip
# NOTE(yukkop): not declared in setup.py, but crash on runtime without that
ipywidgets
];
meta = with lib; {
description = "Shape-e OpenAi model";
platforms = platforms.all;
};
}