mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
49 lines
867 B
Nix
49 lines
867 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
uv-build,
|
|
|
|
# dependencies
|
|
httpx2,
|
|
pydantic,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "genai-prices";
|
|
version = "0.0.65";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pydantic";
|
|
repo = "genai-prices";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-3iqHpJpEdCfBObdcbS0MlVrPNqAAvN4ymCD6JDeb+LE=";
|
|
};
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/packages/python";
|
|
|
|
build-system = [
|
|
uv-build
|
|
];
|
|
|
|
dependencies = [
|
|
httpx2
|
|
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 ];
|
|
};
|
|
})
|