2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools,
|
|
|
|
formulaic,
|
|
|
|
click,
|
|
|
|
num2words,
|
|
|
|
numpy,
|
|
|
|
scipy,
|
|
|
|
pandas,
|
|
|
|
nibabel,
|
|
|
|
bids-validator,
|
|
|
|
sqlalchemy,
|
|
|
|
pytestCheckHook,
|
|
|
|
versioneer,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pybids";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.16.5";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-5MAp5CYlOh1WxsXOE/LHVNm/K4VGFaLKWaaKYwKjQIM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"formulaic"
|
|
|
|
"sqlalchemy"
|
|
|
|
];
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
versioneer
|
|
|
|
] ++ versioneer.optional-dependencies.toml;
|
2023-04-29 16:46:19 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2024-01-13 08:15:51 +00:00
|
|
|
bids-validator
|
2020-10-07 09:15:18 +00:00
|
|
|
click
|
2023-04-29 16:46:19 +00:00
|
|
|
formulaic
|
2024-01-13 08:15:51 +00:00
|
|
|
nibabel
|
2020-04-24 23:36:52 +00:00
|
|
|
num2words
|
|
|
|
numpy
|
|
|
|
pandas
|
2024-01-13 08:15:51 +00:00
|
|
|
scipy
|
2020-04-24 23:36:52 +00:00
|
|
|
sqlalchemy
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "bids" ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabledTests = [
|
2024-06-05 15:53:02 +00:00
|
|
|
# Test looks for missing data
|
2023-11-16 04:20:00 +00:00
|
|
|
"test_config_filename"
|
2024-06-05 15:53:02 +00:00
|
|
|
# Regression associated with formulaic >= 0.6.0
|
2023-11-16 04:20:00 +00:00
|
|
|
# (see https://github.com/bids-standard/pybids/issues/1000)
|
|
|
|
"test_split"
|
2024-06-05 15:53:02 +00:00
|
|
|
# AssertionError, TypeError
|
|
|
|
"test_run_variable_collection_bad_length_to_df_all_dense_var"
|
|
|
|
"test_extension_initial_dot"
|
|
|
|
"test_to_df"
|
2023-11-16 04:20:00 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python tools for querying and manipulating BIDS datasets";
|
|
|
|
homepage = "https://github.com/bids-standard/pybids";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/bids-standard/pybids/blob/${version}/CHANGELOG.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2024-06-05 15:53:02 +00:00
|
|
|
mainProgram = "pybids";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|