2020-04-24 23:36:52 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, lib
|
|
|
|
, fetchPypi
|
2024-01-13 08:15:51 +00:00
|
|
|
, setuptools
|
2023-04-29 16:46:19 +00:00
|
|
|
, formulaic
|
2020-10-07 09:15:18 +00:00
|
|
|
, click
|
2020-04-24 23:36:52 +00:00
|
|
|
, num2words
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, pandas
|
|
|
|
, nibabel
|
|
|
|
, bids-validator
|
|
|
|
, sqlalchemy
|
2021-02-17 17:02:09 +00:00
|
|
|
, pytestCheckHook
|
2023-04-29 16:46:19 +00:00
|
|
|
, versioneer
|
|
|
|
, pythonRelaxDepsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pybids";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.16.4";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-pahl8wi6Sf8AuVqkvi7H90ViHr+9utb14ZVmKK3rFm4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
setuptools
|
|
|
|
versioneer
|
|
|
|
] ++ versioneer.optional-dependencies.toml;
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
pythonRelaxDeps = [ "sqlalchemy" ];
|
|
|
|
|
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-01-13 08:15:51 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"bids"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabledTests = [
|
|
|
|
# looks for missing data:
|
|
|
|
"test_config_filename"
|
|
|
|
# regression associated with formulaic >= 0.6.0
|
|
|
|
# (see https://github.com/bids-standard/pybids/issues/1000)
|
|
|
|
"test_split"
|
|
|
|
];
|
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";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
|
|
|
};
|
|
|
|
}
|