diff --git a/pkgs/development/python-modules/biocframe/default.nix b/pkgs/development/python-modules/biocframe/default.nix new file mode 100644 index 000000000000..bb6f77f0d68c --- /dev/null +++ b/pkgs/development/python-modules/biocframe/default.nix @@ -0,0 +1,52 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pytestCheckHook, + pytest-cov-stub, + setuptools, + setuptools-scm, + biocutils, + numpy, + polars, + pandas, +}: + +buildPythonPackage rec { + pname = "biocframe"; + version = "0.6.3"; + pyproject = true; + + src = fetchFromGitHub { + owner = "BiocPy"; + repo = "BiocFrame"; + tag = "${version}"; + hash = "sha256-HeXQEVDGrr/oEGqLcKgq2RLDA58sbYtc2O6oEdFxrIw="; + }; + + build-system = [ + setuptools + setuptools-scm + ]; + + dependencies = [ + biocutils + numpy + ]; + + nativeCheckInputs = [ + pytest-cov-stub + pytestCheckHook + pandas + polars + ]; + + pythonImportsCheck = [ "biocframe" ]; + + meta = { + description = "Bioconductor-like data frames"; + homepage = "https://github.com/BiocPy/BiocFrame"; + 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 b24be35090c4..91bf65d44fd2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1915,6 +1915,8 @@ self: super: with self; { binsync = callPackage ../development/python-modules/binsync { }; + biocframe = callPackage ../development/python-modules/biocframe { }; + biocutils = callPackage ../development/python-modules/biocutils { }; biom-format = callPackage ../development/python-modules/biom-format { };