summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/biocframe/default.nix
blob: 324eea7c5a563366cf11521a7c6fa6cd3421a5bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  pytest-cov-stub,
  setuptools,
  setuptools-scm,
  biocutils,
  numpy,
  polars,
  pandas,
}:

buildPythonPackage rec {
  pname = "biocframe";
  version = "0.7.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "BiocPy";
    repo = "BiocFrame";
    tag = version;
    hash = "sha256-2O4YINYo9ehiBuZSHZmBmNIwud7GkNzAMWEv2/7oSs8=";
  };

  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 ];
  };
}