depot/third_party/nixpkgs/pkgs/development/python-modules/biothings-client/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

40 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
requests,
}:
buildPythonPackage rec {
pname = "biothings-client";
version = "0.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "biothings";
repo = "biothings_client.py";
rev = "v${version}";
hash = "sha256-rCpzBX2H+7R8ulnJgtVlBA45ASa4DaY5jQ1bO2+bAC8=";
};
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/v${version}/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 ];
};
}