Files
nixpkgs/pkgs/development/python-modules/openai-harmony/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

62 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
rustPlatform,
# dependencies
pydantic,
# optional-dependencies
fastapi,
uvicorn,
}:
buildPythonPackage rec {
pname = "openai-harmony";
version = "0.0.4";
pyproject = true;
src = fetchFromGitHub {
owner = "openai";
repo = "harmony";
rev = "v${version}";
hash = "sha256-2LOrMLrNR1D3isbjiv5w+1Ni9IMwMEPPTOnG1rm//ag=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-tQq6PFMYghIfJu8CddbXFKXxr41GJaElbCCQuSpnaqk=";
};
nativeBuildInputs = [
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
];
dependencies = [
pydantic
];
optional-dependencies = {
demo = [
fastapi
uvicorn
];
};
pythonImportsCheck = [ "openai_harmony" ];
# Tests require internet access
doCheck = false;
meta = {
description = "Renderer for the harmony response format to be used with gpt-oss";
homepage = "https://github.com/openai/harmony";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}