Something went wrong. Try again.
lol
Something went wrong. Try again.
865 B · 49 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950{ lib, buildPythonPackage, fetchFromGitHub,
# build-system uv-build,
# dependencies httpx, pydantic,}:
buildPythonPackage (finalAttrs: { pname = "genai-prices"; version = "0.0.57"; pyproject = true;
src = fetchFromGitHub { owner = "pydantic"; repo = "genai-prices"; tag = "v${finalAttrs.version}"; hash = "sha256-gEviMu89IL4qSU4/wjGhLo8l1kA5N2alGp+/VcQpEHM="; };
sourceRoot = "${finalAttrs.src.name}/packages/python";
build-system = [ uv-build ];
dependencies = [ httpx pydantic ];
pythonImportsCheck = [ "genai_prices" ];
doCheck = false; # no tests
meta = { description = "Calculate prices for calling LLM inference APIs"; homepage = "https://github.com/pydantic/genai-prices"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ hexa ]; };})