about summary refs log tree commit diff
path: root/pkgs/development/python-modules/loompy/default.nix
blob: 1240a01be03a327a8a7a39ead5d1371a2b0a8409 (plain) (blame)
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
53
54
55
56
{
  lib,
  fetchPypi,
  buildPythonPackage,
  h5py,
  numpy,
  scipy,
  numba,
  click,
  numpy-groupies,
  setuptools,
  pytestCheckHook,
}:
let
  finalAttrs = {
    pname = "loompy";
    version = "3.0.7";
    pyproject = true;

    src = fetchPypi {
      inherit (finalAttrs) pname version;
      hash = "sha256-tc33tUc0xr7ToYHRGUevcK8sbg3K3AL9Docd8jL6qPQ=";
    };

    build-system = [ setuptools ];

    dependencies = [
      h5py
      numpy
      scipy
      numba
      click
      numpy-groupies
    ];

    nativeCheckInputs = [ pytestCheckHook ];

    # Deprecated numpy attributes access
    disabledTests = [
      "test_scan_with_default_ordering"
      "test_get"
    ];

    pythonImportsCheck = [ "loompy" ];

    meta = {
      changelog = "https://github.com/linnarsson-lab/loompy/releases";
      description = "Python implementation of the Loom file format";
      homepage = "https://github.com/linnarsson-lab/loompy";
      license = lib.licenses.bsd2;
      maintainers = with lib.maintainers; [ theobori ];
      mainProgram = "loompy";
    };
  };
in
buildPythonPackage finalAttrs