blob: cb608eeb1d95d153eaf5c3fb824cebd4c02cf752 (
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
53
54
55
56
57
58
59
60
61
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
cython,
click,
numpy,
scipy,
pandas,
h5py,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "biom-format";
version = "2.1.17";
pyproject = true;
src = fetchFromGitHub {
owner = "biocore";
repo = "biom-format";
tag = finalAttrs.version;
hash = "sha256-FjIC21LoqltixBstbbANByjTNxVm/3YCxdWaD9KbOQ0=";
};
build-system = [
setuptools
cython
numpy
];
dependencies = [
click
numpy
scipy
pandas
h5py
];
# make pytest resolve the package from $out
# some tests don't work if we change the level of directory nesting
preCheck = ''
mkdir biom_tests
mv biom/tests biom_tests/tests
rm -r biom
'';
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "biom_tests/tests" ];
pythonImportsCheck = [ "biom" ];
meta = {
homepage = "http://biom-format.org/";
description = "Biological Observation Matrix (BIOM) format";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ tomasajt ];
};
})
|