From 92b142d85c49d143e5d5db87bbb01265f82a8fc7 Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Sun, 4 May 2025 20:55:19 +0200 Subject: [PATCH] python312Packages.biothings-client: fix build --- .../biothings-client/default.nix | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/biothings-client/default.nix b/pkgs/development/python-modules/biothings-client/default.nix index 240524dda262..261114ed46a7 100644 --- a/pkgs/development/python-modules/biothings-client/default.nix +++ b/pkgs/development/python-modules/biothings-client/default.nix @@ -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 = {