2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
cython,
|
|
|
|
click,
|
|
|
|
numpy,
|
|
|
|
scipy,
|
|
|
|
pandas,
|
|
|
|
h5py,
|
|
|
|
pytestCheckHook,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "biom-format";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "2.1.16";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "biocore";
|
|
|
|
repo = "biom-format";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-E/6dIN8tdsu6cBVBW/BOeAQwJB9XRRL3flQZSKqIZlc=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "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 ];
|
|
|
|
};
|
|
|
|
}
|