Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1.4 KiB
Nix
51 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
httpx,
|
|
pytestCheckHook,
|
|
pytest-asyncio,
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "biothings-client";
|
|
version = "0.4.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "biothings";
|
|
repo = "biothings_client.py";
|
|
tag = "v${version}";
|
|
hash = "sha256-uItIVoWbclF5Xkt7BxI/Q9sfKtrOJxYeJJmTd2NeGfo=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
dependencies = [ httpx ];
|
|
pythonImportsCheck = [ "biothings_client" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-asyncio
|
|
];
|
|
|
|
enabledTestPaths = [
|
|
# All other tests make network requests to exercise the API
|
|
"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 = {
|
|
changelog = "https://github.com/biothings/biothings_client.py/blob/${src.tag}/CHANGES.txt";
|
|
description = "Wrapper to access Biothings.api-based backend services";
|
|
homepage = "https://github.com/biothings/biothings_client.py";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ rayhem ];
|
|
};
|
|
}
|