60 lines
1.0 KiB
Nix
60 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
|
|
# build-system
|
|
hatch-jupyter-builder,
|
|
hatch-nodejs-version,
|
|
hatchling,
|
|
jupyterlab,
|
|
|
|
# dependencies
|
|
ipywidgets,
|
|
|
|
# tests
|
|
nbval,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "guidance-stitch";
|
|
version = "0.1.5";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "guidance_stitch";
|
|
inherit version;
|
|
hash = "sha256-Kg0O3oZds4eFfUlKe8sakDYhwT9XGGnN4RCcLFVpzZU=";
|
|
};
|
|
|
|
build-system = [
|
|
hatch-jupyter-builder
|
|
hatch-nodejs-version
|
|
hatchling
|
|
jupyterlab
|
|
];
|
|
|
|
dependencies = [
|
|
ipywidgets
|
|
];
|
|
|
|
pythonImportsCheck = [ "stitch" ];
|
|
|
|
nativeCheckInputs = [
|
|
nbval
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = {
|
|
description = "Guidance language for controlling large language models";
|
|
homepage = "https://github.com/guidance-ai/guidance/tree/main/packages/python/stitch";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
|
};
|
|
}
|