python312Packages.groq: init at 0.13.0

Library for the Groq API

https://github.com/groq/groq-python
This commit is contained in:
Fabian Affolter
2024-12-10 16:03:26 +01:00
parent c44b4dac61
commit 5ed339ff57
2 changed files with 73 additions and 0 deletions
@@ -0,0 +1,71 @@
{
lib,
anyio,
buildPythonPackage,
dirty-equals,
distro,
fetchFromGitHub,
hatch-fancy-pypi-readme,
hatchling,
httpx,
nest-asyncio,
pydantic,
pytest-asyncio,
pytestCheckHook,
respx,
sniffio,
typing-extensions,
}:
buildPythonPackage rec {
pname = "groq";
version = "0.13.0";
pyproject = true;
src = fetchFromGitHub {
owner = "groq";
repo = "groq-python";
rev = "refs/tags/v${version}";
hash = "sha256-EkEXXHca4DJtY1joM1E4IXzaQzJL+QC+aYaTe46EWlE=";
};
build-system = [
hatch-fancy-pypi-readme
hatchling
];
dependencies = [
anyio
distro
httpx
pydantic
sniffio
typing-extensions
];
nativeCheckInputs = [
dirty-equals
nest-asyncio
pytest-asyncio
pytestCheckHook
respx
];
pythonImportsCheck = [ "groq" ];
disabledTests = [
# Tests require network access
"test_method"
"test_streaming"
"test_raw_response"
"test_copy_build_request"
];
meta = {
description = "Library for the Groq API";
homepage = "https://github.com/groq/groq-python";
changelog = "https://github.com/groq/groq-python/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
+2
View File
@@ -5576,6 +5576,8 @@ self: super: with self; {
greynoise = callPackage ../development/python-modules/greynoise { };
groq = callPackage ../development/python-modules/groq { };
growattserver = callPackage ../development/python-modules/growattserver { };
gridnet = callPackage ../development/python-modules/gridnet { };