2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
cython,
|
|
|
|
oldest-supported-numpy,
|
|
|
|
requests,
|
|
|
|
decorator,
|
|
|
|
natsort,
|
|
|
|
numpy,
|
|
|
|
pandas,
|
|
|
|
scipy,
|
|
|
|
h5py,
|
|
|
|
hdmedians,
|
|
|
|
biom-format,
|
|
|
|
python,
|
|
|
|
pytestCheckHook,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scikit-bio";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.6.0";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scikit-bio";
|
|
|
|
repo = "scikit-bio";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-v8/r52pJpMi34SekPQBf7CqRbs+ZEyPR3WO5RBB7uKg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
cython
|
|
|
|
oldest-supported-numpy
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
|
|
|
requests
|
|
|
|
decorator
|
|
|
|
natsort
|
|
|
|
numpy
|
|
|
|
pandas
|
|
|
|
scipy
|
|
|
|
h5py
|
|
|
|
hdmedians
|
|
|
|
biom-format
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
# only the $out dir contains the built cython extensions, so we run the tests inside there
|
|
|
|
pytestFlagsArray = [ "${placeholder "out"}/${python.sitePackages}/skbio" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
pythonImportsCheck = [ "skbio" ];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://scikit-bio.org/";
|
|
|
|
description = "Data structures, algorithms and educational resources for bioinformatics";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ tomasajt ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|