Files
nixpkgs/pkgs/development/python-modules/biothings-client/default.nix
T

41 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
requests,
}:
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 = [ requests ];
pythonImportsCheck = [ "biothings_client" ];
nativeCheckInputs = [ pytestCheckHook ];
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"
];
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 ];
};
}