python312Packages.biothings-client: fix build

This commit is contained in:
Tom Hunze
2025-05-04 20:55:19 +02:00
parent 4997b19d39
commit 92b142d85c
@@ -3,8 +3,9 @@
buildPythonPackage,
fetchFromGitHub,
setuptools,
httpx,
pytestCheckHook,
requests,
pytest-asyncio,
}:
buildPythonPackage rec {
pname = "biothings-client";
@@ -19,15 +20,24 @@ buildPythonPackage rec {
};
build-system = [ setuptools ];
dependencies = [ requests ];
dependencies = [ httpx ];
pythonImportsCheck = [ "biothings_client" ];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
];
pytestFlagsArray = [
# All other tests make network requests to exercise the API
"tests/gene.py::TestGeneClient::test_http"
"tests/test.py::TestBiothingsClient::test_generate_settings_from_url"
"tests/variant.py::TestVariantClient::test_format_hgvs"
"tests/test_async.py::test_generate_async_settings"
"tests/test_async.py::test_url_protocol"
"tests/test_async.py::test_async_client_proxy_discovery"
"tests/test_async_variant.py::test_format_hgvs"
"tests/test_sync.py::test_generate_settings"
"tests/test_sync.py::test_url_protocol"
"tests/test_sync.py::test_client_proxy_discovery"
"tests/test_variant.py::test_format_hgvs"
];
meta = {