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
62
63
64
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
cython,
oldest-supported-numpy,
requests,
decorator,
natsort,
numpy,
pandas,
scipy,
h5py,
hdmedians,
biom-format,
python,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "scikit-bio";
version = "0.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "scikit-bio";
repo = "scikit-bio";
rev = "refs/tags/${version}";
hash = "sha256-v8/r52pJpMi34SekPQBf7CqRbs+ZEyPR3WO5RBB7uKg=";
};
build-system = [
setuptools
cython
oldest-supported-numpy
];
dependencies = [
requests
decorator
natsort
numpy
pandas
scipy
h5py
hdmedians
biom-format
];
nativeCheckInputs = [ pytestCheckHook ];
# only the $out dir contains the built cython extensions, so we run the tests inside there
pytestFlagsArray = [ "${placeholder "out"}/${python.sitePackages}/skbio" ];
pythonImportsCheck = [ "skbio" ];
meta = {
homepage = "http://scikit-bio.org/";
description = "Data structures, algorithms and educational resources for bioinformatics";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ tomasajt ];
};
}
|