python3Packages.genai-prices: init at 0.0.55
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
})
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user