From 935c9cc8793a9b4d19eb2887bf5e609d8a8615c9 Mon Sep 17 00:00:00 2001 From: Bruno Rodrigues Date: Thu, 11 Sep 2025 18:52:01 +0200 Subject: [PATCH] python3Packages.biocutils: init at 0.2.3 --- .../python-modules/biocutils/default.nix | 48 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/development/python-modules/biocutils/default.nix diff --git a/pkgs/development/python-modules/biocutils/default.nix b/pkgs/development/python-modules/biocutils/default.nix new file mode 100644 index 000000000000..4c1a87281cf1 --- /dev/null +++ b/pkgs/development/python-modules/biocutils/default.nix @@ -0,0 +1,48 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pytest-cov-stub, + setuptools, + setuptools-scm, + scipy, + pandas, + numpy, +}: + +buildPythonPackage rec { + pname = "biocutils"; + version = "0.2.3"; + pyproject = true; + + src = fetchFromGitHub { + owner = "BiocPy"; + repo = "BiocUtils"; + tag = "${version}"; + hash = "sha256-4LzXBP/cp+nqIOM5QZIa1QptkSfv3fqdACHEHjJUtsw="; + }; + + build-system = [ + setuptools + setuptools-scm + ]; + + dependencies = [ numpy ]; + + nativeCheckInputs = [ + pytest-cov-stub + pytestCheckHook + pandas + scipy + ]; + + pythonImportsCheck = [ "biocutils" ]; + + meta = { + description = "Miscellaneous utilities for BiocPy, mostly to mimic base functionality in R"; + homepage = "https://github.com/BiocPy/BiocUtils"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ b-rodrigues ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9e7bfc8df7f1..1b0f9394e096 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1911,6 +1911,8 @@ self: super: with self; { binsync = callPackage ../development/python-modules/binsync { }; + biocutils = callPackage ../development/python-modules/biocutils { }; + biom-format = callPackage ../development/python-modules/biom-format { }; biopandas = callPackage ../development/python-modules/biopandas { };