1{ buildPythonPackage
2, lib
3, fetchPypi
4, isPy27
5, num2words
6, numpy
7, scipy
8, pandas
9, nibabel
10, patsy
11, bids-validator
12, sqlalchemy
13, pytest
14, pathlib
15}:
16
17buildPythonPackage rec {
18 version = "0.9.2";
19 pname = "pybids";
20
21 src = fetchPypi {
22 inherit pname version;
23 sha256 = "16c0v800yklp043prbrx1357vx1mq5gddxz5zqlcnf4akhzcqrxs";
24 };
25
26 propagatedBuildInputs = [
27 num2words
28 numpy
29 scipy
30 pandas
31 nibabel
32 patsy
33 bids-validator
34 sqlalchemy
35 ];
36
37 checkInputs = [ pytest ] ++ lib.optionals isPy27 [ pathlib ];
38
39 checkPhase = ''
40 pytest
41 '';
42
43 meta = with lib; {
44 description = "Python tools for querying and manipulating BIDS datasets";
45 homepage = https://github.com/bids-standard/pybids;
46 license = licenses.mit;
47 maintainers = with maintainers; [ jonringer ];
48 };
49}