Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 40 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7 requests, 8}: 9buildPythonPackage rec { 10 pname = "biothings-client"; 11 version = "0.3.1"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "biothings"; 16 repo = "biothings_client.py"; 17 rev = "v${version}"; 18 hash = "sha256-rCpzBX2H+7R8ulnJgtVlBA45ASa4DaY5jQ1bO2+bAC8="; 19 }; 20 21 build-system = [ setuptools ]; 22 dependencies = [ requests ]; 23 pythonImportsCheck = [ "biothings_client" ]; 24 nativeCheckInputs = [ pytestCheckHook ]; 25 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 ]; 32 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 }; 40}