From 83b92b30f6af9cd37d71a62f390a7a4d6b439af2 Mon Sep 17 00:00:00 2001 From: Connor Glosser <49202382+rayhem@users.noreply.github.com> Date: Wed, 9 Oct 2024 21:15:22 -0400 Subject: [PATCH] python312Packages.mygene: init at 3.2.2 Resolves #344328 Update pkgs/development/python-modules/mygene/default.nix Co-authored-by: OTABI Tomoya Update pkgs/development/python-modules/mygene/default.nix Co-authored-by: OTABI Tomoya Update pkgs/development/python-modules/mygene/default.nix Co-authored-by: OTABI Tomoya Use optional-dependencies Update tests for mygene --- .../python-modules/mygene/default.nix | 43 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/development/python-modules/mygene/default.nix diff --git a/pkgs/development/python-modules/mygene/default.nix b/pkgs/development/python-modules/mygene/default.nix new file mode 100644 index 0000000000000..42da424254956 --- /dev/null +++ b/pkgs/development/python-modules/mygene/default.nix @@ -0,0 +1,43 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + + # Dependencies + biothings-client, + pandas, + requests, +}: +buildPythonPackage rec { + pname = "mygene"; + version = "3.2.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "biothings"; + repo = "mygene.py"; + rev = "v${version}"; + hash = "sha256-/KxlzOTbZTN5BA0PrJyivVFh4cLtW90/EFwczda61Tg="; + }; + + optional-dependencies = { + complete = [ pandas ]; + }; + + build-system = [ setuptools ]; + dependencies = [ + biothings-client + requests + ]; + pythonImportsCheck = [ "mygene" ]; + + meta = { + changelog = "https://github.com/biothings/mygene.py/blob/v${version}/CHANGES.txt"; + description = "REST web services to query/retrieve gene annotation data"; + homepage = "https://github.com/biothings/mygene.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 1e667c9a029ec..7125715898abe 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8314,6 +8314,8 @@ self: super: with self; { myfitnesspal = callPackage ../development/python-modules/myfitnesspal { }; + mygene = callPackage ../development/python-modules/mygene { }; + mygpoclient = callPackage ../development/python-modules/mygpoclient { }; myhdl = callPackage ../development/python-modules/myhdl {