diff options
Diffstat (limited to 'pkgs/development/python-modules/outlines/default.nix')
-rw-r--r-- | pkgs/development/python-modules/outlines/default.nix | 52 |
1 files changed, 30 insertions, 22 deletions
diff --git a/pkgs/development/python-modules/outlines/default.nix b/pkgs/development/python-modules/outlines/default.nix index 5e33127f3e0c..52ba16676fd0 100644 --- a/pkgs/development/python-modules/outlines/default.nix +++ b/pkgs/development/python-modules/outlines/default.nix @@ -1,32 +1,36 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, setuptools -, setuptools-scm -, interegular -, cloudpickle -, diskcache -, joblib -, jsonschema -, pydantic -, lark -, nest-asyncio -, numba -, scipy -, torch -, transformers +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + setuptools-scm, + interegular, + cloudpickle, + datasets, + diskcache, + joblib, + jsonschema, + pyairports, + pycountry, + pydantic, + lark, + nest-asyncio, + numba, + scipy, + torch, + transformers, }: buildPythonPackage rec { pname = "outlines"; - version = "0.0.38"; + version = "0.0.46"; pyproject = true; src = fetchFromGitHub { owner = "outlines-dev"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-kOd2J6PV2idWaltkGUVNXfB+1dNU1f8vbnHQ5i1WxG8="; + hash = "sha256-6VH9BcMRVRf2xvLcK3GNA1pGgAOs95UOlFQ6KxHXwKo="; }; nativeBuildInputs = [ @@ -37,6 +41,7 @@ buildPythonPackage rec { propagatedBuildInputs = [ interegular cloudpickle + datasets diskcache joblib jsonschema @@ -47,11 +52,14 @@ buildPythonPackage rec { scipy torch transformers + pycountry + pyairports ]; - pythonImportsCheck = [ - "outlines" - ]; + checkPhase = '' + export HOME=$(mktemp -d) + python3 -c 'import outlines' + ''; meta = with lib; { description = "Structured text generation"; |