mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-05 19:53:43 +00:00
python3.pkgs.instructor: init at 0.6.4
This commit is contained in:
parent
c4e9a02d3e
commit
5ed4f2a3cb
41
pkgs/development/python-modules/instructor/default.nix
Normal file
41
pkgs/development/python-modules/instructor/default.nix
Normal file
@ -0,0 +1,41 @@
|
||||
{ lib
|
||||
, python3
|
||||
, fetchPypi
|
||||
, buildPythonPackage
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "instructor";
|
||||
version = "0.6.4";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-Af52TGnkqY/t0cPkHoRfhFqa/tuOpQXAI/fFfMTcM4Y=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
python3.pkgs.poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
aiohttp
|
||||
docstring-parser
|
||||
openai
|
||||
pydantic
|
||||
rich
|
||||
tenacity
|
||||
typer
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "instructor" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Structured outputs for llm";
|
||||
homepage = "https://github.com/jxnl/instructor";
|
||||
changelog = "https://github.com/jxnl/instructor/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ mic92 ];
|
||||
mainProgram = "instructor";
|
||||
};
|
||||
}
|
@ -5682,6 +5682,8 @@ self: super: with self; {
|
||||
|
||||
insteon-frontend-home-assistant = callPackage ../development/python-modules/insteon-frontend-home-assistant { };
|
||||
|
||||
instructor = callPackage ../development/python-modules/instructor { };
|
||||
|
||||
intake = callPackage ../development/python-modules/intake { };
|
||||
|
||||
intake-parquet = callPackage ../development/python-modules/intake-parquet { };
|
||||
|
Loading…
Reference in New Issue
Block a user