mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
python3Packages.lm-format-enforcer: init at 0.10.4
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pydantic,
|
||||
interegular,
|
||||
pyyaml,
|
||||
poetry-core,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "lm-format-enforcer";
|
||||
version = "0.10.4";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "noamgat";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-GOnMj910rgzYeIeN2yLcXZDDel/Hu6nv7ov5BrlHJLg=";
|
||||
};
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
dependencies = [
|
||||
interegular
|
||||
pydantic
|
||||
pyyaml
|
||||
];
|
||||
|
||||
doCheck = false; # most tests require internet access
|
||||
|
||||
pythonImportsCheck = [ "lmformatenforcer" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Enforce the output format (JSON Schema, Regex etc) of a language model";
|
||||
changelog = "https://github.com/noamgat/lm-format-enforcer/releases/tag/v${version}";
|
||||
homepage = "https://github.com/noamgat/lm-format-enforcer";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ cfhammill ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user