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 197698ccf8d3e..02b18c2abbbf1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8569,6 +8569,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 {