Skip to content

Commit

Permalink
python312Packages.mygene: init at 3.2.2
Browse files Browse the repository at this point in the history
Resolves NixOS#344328

Update pkgs/development/python-modules/mygene/default.nix

Co-authored-by: OTABI Tomoya <[email protected]>

Update pkgs/development/python-modules/mygene/default.nix

Co-authored-by: OTABI Tomoya <[email protected]>

Update pkgs/development/python-modules/mygene/default.nix

Co-authored-by: OTABI Tomoya <[email protected]>

Use optional-dependencies

Update tests for mygene
  • Loading branch information
rayhem committed Nov 25, 2024
1 parent 8ffe4bb commit 83b92b3
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
43 changes: 43 additions & 0 deletions pkgs/development/python-modules/mygene/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 83b92b3

Please sign in to comment.