Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / instructor / default.nix
blob0370c356d9fcc9ae2f2afcc39debb6866f276d89
1 { lib
2 , python3
3 , fetchPypi
4 , buildPythonPackage
5 }:
7 buildPythonPackage rec {
8   pname = "instructor";
9   version = "0.6.8";
10   pyproject = true;
12   src = fetchPypi {
13     inherit pname version;
14     hash = "sha256-4mHXPes1NdYu53XEN7gq626cKy9ju1M7U6n6akfbuVo=";
15   };
17   nativeBuildInputs = [
18     python3.pkgs.poetry-core
19   ];
21   propagatedBuildInputs = with python3.pkgs; [
22     aiohttp
23     docstring-parser
24     openai
25     pydantic
26     rich
27     tenacity
28     typer
29   ];
31   pythonImportsCheck = [ "instructor" ];
33   meta = with lib; {
34     description = "Structured outputs for llm";
35     homepage = "https://github.com/jxnl/instructor";
36     changelog = "https://github.com/jxnl/instructor/releases/tag/v${version}";
37     license = licenses.mit;
38     maintainers = with maintainers; [ mic92 ];
39     mainProgram = "instructor";
40   };