75 lines
1.4 KiB
Nix
75 lines
1.4 KiB
Nix
|
{
|
||
|
lib,
|
||
|
buildPythonPackage,
|
||
|
fetchFromGitHub,
|
||
|
|
||
|
setuptools,
|
||
|
cython,
|
||
|
oldest-supported-numpy,
|
||
|
|
||
|
requests,
|
||
|
decorator,
|
||
|
natsort,
|
||
|
numpy,
|
||
|
pandas,
|
||
|
scipy,
|
||
|
h5py,
|
||
|
biom-format,
|
||
|
statsmodels,
|
||
|
patsy,
|
||
|
|
||
|
python,
|
||
|
pytestCheckHook,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "scikit-bio";
|
||
|
version = "0.6.2";
|
||
|
pyproject = true;
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "scikit-bio";
|
||
|
repo = "scikit-bio";
|
||
|
rev = "refs/tags/${version}";
|
||
|
hash = "sha256-1L3AemXVqfgBDlRZorG7+8qt3f1Bm8L+Se+OwqEWwI4=";
|
||
|
};
|
||
|
|
||
|
build-system = [
|
||
|
setuptools
|
||
|
cython
|
||
|
oldest-supported-numpy
|
||
|
];
|
||
|
|
||
|
dependencies = [
|
||
|
requests
|
||
|
decorator
|
||
|
natsort
|
||
|
numpy
|
||
|
pandas
|
||
|
scipy
|
||
|
h5py
|
||
|
biom-format
|
||
|
statsmodels
|
||
|
patsy
|
||
|
];
|
||
|
|
||
|
nativeCheckInputs = [ pytestCheckHook ];
|
||
|
|
||
|
# only the $out dir contains the built cython extensions, so we run the tests inside there
|
||
|
pytestFlagsArray = [ "${placeholder "out"}/${python.sitePackages}/skbio" ];
|
||
|
|
||
|
disabledTestPaths = [
|
||
|
# don't know why, but this segfaults
|
||
|
"${placeholder "out"}/${python.sitePackages}/skbio/metadata/tests/test_intersection.py"
|
||
|
];
|
||
|
|
||
|
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 ];
|
||
|
};
|
||
|
}
|