python312Packages.groq: init at 0.13.0
Library for the Groq API https://github.com/groq/groq-python
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user