python3Packages.genai-prices: init at 0.0.55

This commit is contained in:
Martin Weinelt
2026-03-18 21:31:16 +01:00
parent 1e8e328f48
commit 17b0635ee9
2 changed files with 51 additions and 0 deletions
@@ -0,0 +1,49 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
uv-build,
# dependencies
httpx,
pydantic,
}:
buildPythonPackage (finalAttrs: {
pname = "genai-prices";
version = "0.0.55";
pyproject = true;
src = fetchFromGitHub {
owner = "pydantic";
repo = "genai-prices";
tag = "v${finalAttrs.version}";
hash = "sha256-FxHBVroKC9tgYJ+a429cnv7UVWMBoeTX+BEah7eD9Us=";
};
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 ];
};
})
+2
View File
@@ -6088,6 +6088,8 @@ self: super: with self; {
}
);
genai-prices = callPackage ../development/python-modules/genai-prices { };
genanki = callPackage ../development/python-modules/genanki { };
general-sam = callPackage ../development/python-modules/general-sam { };