evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / biothings-client / default.nix
blob67334498240c7bac3bd5a08135c25bbf4bd322eb
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   pytestCheckHook,
7   requests,
8 }:
9 buildPythonPackage rec {
10   pname = "biothings-client";
11   version = "0.3.1";
12   pyproject = true;
14   src = fetchFromGitHub {
15     owner = "biothings";
16     repo = "biothings_client.py";
17     rev = "v${version}";
18     hash = "sha256-rCpzBX2H+7R8ulnJgtVlBA45ASa4DaY5jQ1bO2+bAC8=";
19   };
21   build-system = [ setuptools ];
22   dependencies = [ requests ];
23   pythonImportsCheck = [ "biothings_client" ];
24   nativeCheckInputs = [ pytestCheckHook ];
26   pytestFlagsArray = [
27     # All other tests make network requests to exercise the API
28     "tests/gene.py::TestGeneClient::test_http"
29     "tests/test.py::TestBiothingsClient::test_generate_settings_from_url"
30     "tests/variant.py::TestVariantClient::test_format_hgvs"
31   ];
33   meta = {
34     changelog = "https://github.com/biothings/biothings_client.py/blob/v${version}/CHANGES.txt";
35     description = "Wrapper to access Biothings.api-based backend services";
36     homepage = "https://github.com/biothings/biothings_client.py";
37     license = lib.licenses.bsd3;
38     maintainers = with lib.maintainers; [ rayhem ];
39   };