5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|
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 ];
|
|
};
|
|
}
|