Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 61 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162{ 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 ]; };}