Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 74 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475{ lib, buildPythonPackage, fetchFromGitHub, setuptools, setuptools-scm, airportsdata, interegular, cloudpickle, datasets, diskcache, jinja2, jsonschema, numpy, outlines-core, pycountry, pydantic, lark, nest-asyncio, referencing, requests, torch, transformers,}:
buildPythonPackage rec { pname = "outlines"; version = "0.1.13"; pyproject = true;
src = fetchFromGitHub { owner = "outlines-dev"; repo = "outlines"; tag = version; hash = "sha256-HuJqLbBHyoyY5ChQQi+9ftvPjLuh63Guk2w6KSZxq6s="; };
build-system = [ setuptools setuptools-scm ];
dependencies = [ airportsdata interegular cloudpickle datasets diskcache jinja2 jsonschema outlines-core pydantic lark nest-asyncio numpy referencing requests torch transformers pycountry ];
checkPhase = '' export HOME=$(mktemp -d) python3 -c 'import outlines' '';
meta = with lib; { description = "Structured text generation"; homepage = "https://github.com/outlines-dev/outlines"; license = licenses.asl20; maintainers = with maintainers; [ lach ]; };}