python3Packages.formatron: init at 0.5.0

This commit is contained in:
BatteredBunny
2025-12-08 13:46:34 +02:00
parent e650696798
commit 026d5656ee
2 changed files with 60 additions and 0 deletions
@@ -0,0 +1,58 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
general-sam,
setuptools,
kbnf,
frozendict,
jsonschema,
pydantic,
transformers,
vllm,
}:
buildPythonPackage rec {
pname = "formatron";
version = "0.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Dan-wanna-M";
repo = "formatron";
rev = "v${version}";
hash = "sha256-LQJza8F5wPcQO1y7Ino4slv7zoJMsZBn4LKLWYO9818=";
fetchSubmodules = true;
};
build-system = [
setuptools
];
dependencies = [
frozendict
general-sam
jsonschema
kbnf
pydantic
];
optional-dependencies = {
transformers = [
transformers
];
vllm = [
vllm
];
};
pythonImportsCheck = [
"formatron"
];
meta = {
description = "Control the output format of language models";
homepage = "https://github.com/Dan-wanna-M/formatron";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ BatteredBunny ];
};
}
+2
View File
@@ -5685,6 +5685,8 @@ self: super: with self; {
forecast-solar = callPackage ../development/python-modules/forecast-solar { };
formatron = callPackage ../development/python-modules/formatron { };
formbox = callPackage ../development/python-modules/formbox { };
formencode = callPackage ../development/python-modules/formencode { };