-
-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python312Packages.groq: init at 0.11.0
- Loading branch information
1 parent
cc70fa3
commit 388445c
Showing
3 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
pytestCheckHook, | ||
pytest-asyncio, | ||
dirty-equals, | ||
fetchPypi, | ||
hatch-fancy-pypi-readme, | ||
hatchling, | ||
cached-property, | ||
distro, | ||
httpx, | ||
pydantic, | ||
sniffio, | ||
anyio, | ||
typing-extensions, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "groq"; | ||
version = "0.11.0"; | ||
pyproject = true; | ||
|
||
src = fetchPypi { | ||
inherit pname version; | ||
hash = "sha256-27mu/t84jd1IAex78+un9e22eUj+wM0oKdlyRAWfQqc="; | ||
}; | ||
|
||
patches = [ ./ignore-warnings-pytest.patch ]; | ||
|
||
build-system = [ | ||
hatch-fancy-pypi-readme | ||
hatchling | ||
]; | ||
|
||
nativeCheckInputs = [ | ||
pytestCheckHook | ||
pytest-asyncio | ||
dirty-equals | ||
]; | ||
|
||
pytestFlagsArray = [ | ||
"--ignore=tests/api_resources" | ||
"--ignore=tests/test_client.py" | ||
]; | ||
|
||
disabledTests = [ | ||
"test_response" | ||
]; | ||
|
||
dependencies = [ | ||
anyio | ||
distro | ||
httpx | ||
pydantic | ||
sniffio | ||
typing-extensions | ||
]; | ||
|
||
pythonImportsCheck = [ | ||
"groq" | ||
]; | ||
|
||
meta = { | ||
description = "Official Python library for the groq API"; | ||
homepage = "https://github.com/groq/groq-python/"; | ||
changelog = "https://github.com/groq/groq-python/blob/v${version}/CHANGELOG.md"; | ||
license = lib.licenses.asl20; | ||
maintainers = with lib.maintainers; [ giuliococconi ]; | ||
}; | ||
} |
13 changes: 13 additions & 0 deletions
13
pkgs/development/python-modules/groq/ignore-warnings-pytest.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff a/pyproject.toml b/pyproject.toml | ||
--- a/pyproject.toml | ||
+++ b/pyproject.toml | ||
@@ -138,9 +138,6 @@ testpaths = ["tests"] | ||
addopts = "--tb=short" | ||
xfail_strict = true | ||
asyncio_mode = "auto" | ||
-filterwarnings = [ | ||
- "error" | ||
-] | ||
|
||
[tool.pyright] | ||
# this enables practically every flag given by pyright. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters