nixpkgs/pkgs/development/python-modules/pybids/default.nix

52 lines
855 B
Nix
Raw Normal View History

2019-08-06 02:07:10 +00:00
{ buildPythonPackage
, lib
, fetchPypi
, isPy27
, click
2019-08-06 02:07:10 +00:00
, num2words
, numpy
, scipy
, pandas
, nibabel
, patsy
, bids-validator
, sqlalchemy
, pytest
, pathlib
}:
buildPythonPackage rec {
version = "0.12.4";
2019-08-06 02:07:10 +00:00
pname = "pybids";
src = fetchPypi {
inherit pname version;
sha256 = "830f3f518ab0d2e058e9ba6d6ff9a942792909c874433b3ad58a3339a23f46bf";
2019-08-06 02:07:10 +00:00
};
propagatedBuildInputs = [
click
2019-08-06 02:07:10 +00:00
num2words
numpy
scipy
pandas
nibabel
patsy
bids-validator
sqlalchemy
];
checkInputs = [ pytest ] ++ lib.optionals isPy27 [ pathlib ];
checkPhase = ''
pytest
'';
meta = with lib; {
description = "Python tools for querying and manipulating BIDS datasets";
homepage = "https://github.com/bids-standard/pybids";
2019-08-06 02:07:10 +00:00
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};
}