diff options
| author | Connor Glosser <49202382+rayhem@users.noreply.github.com> | 2024-09-26 20:12:38 -0400 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2024-10-08 16:23:10 +0000 |
| commit | db55be6e21e0287d3b3f90073a4d29e1c172bf15 (patch) | |
| tree | b1e32248af7544c52f9ad1d74751b086cc9c97c4 | |
| parent | maintainers: add rayhem (diff) | |
| download | nixpkgs-origin/backport-344340-to-release-24.05.tar.gz | |
python312Packages.biothings-client: init at 0.3.1origin/backport-344340-to-release-24.05
Intended for use with mygene library
(cherry picked from commit 0667d782323fcfb5bcf8add4f81c35a73810e61e)
| -rw-r--r-- | pkgs/development/python-modules/biothings-client/default.nix | 40 | ||||
| -rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/biothings-client/default.nix b/pkgs/development/python-modules/biothings-client/default.nix new file mode 100644 index 000000000000..67334498240c --- /dev/null +++ b/pkgs/development/python-modules/biothings-client/default.nix @@ -0,0 +1,40 @@ +{ + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5ba7d0a8059f..af35a0f902c4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1551,6 +1551,8 @@ self: super: with self; { biopython = callPackage ../development/python-modules/biopython { }; + biothings-client = callPackage ../development/python-modules/biothings-client { }; + biplist = callPackage ../development/python-modules/biplist { }; bip-utils = callPackage ../development/python-modules/bip-utils { }; |
