1{ buildPythonPackage
2, lib
3, fetchPypi
4, fetchpatch
5, formulaic
6, click
7, num2words
8, numpy
9, scipy
10, pandas
11, nibabel
12, patsy
13, bids-validator
14, sqlalchemy
15, pytestCheckHook
16, versioneer
17, pythonRelaxDepsHook
18}:
19
20buildPythonPackage rec {
21 version = "0.16.3";
22 pname = "pybids";
23
24 src = fetchPypi {
25 inherit pname version;
26 hash = "sha256-EOJ5NQyNFMpgLA1EaaXkv3/zk+hkPIMaVGrnNba4LMM=";
27 };
28
29 nativeBuildInputs = [ pythonRelaxDepsHook ];
30
31 pythonRelaxDeps = [ "sqlalchemy" ];
32
33 propagatedBuildInputs = [
34 click
35 formulaic
36 num2words
37 numpy
38 scipy
39 pandas
40 nibabel
41 patsy
42 bids-validator
43 sqlalchemy
44 versioneer
45 ];
46
47 nativeCheckInputs = [ pytestCheckHook ];
48 pythonImportsCheck = [ "bids" ];
49 disabledTests = [
50 # looks for missing data:
51 "test_config_filename"
52 # regression associated with formulaic >= 0.6.0
53 # (see https://github.com/bids-standard/pybids/issues/1000)
54 "test_split"
55 ];
56
57 meta = with lib; {
58 description = "Python tools for querying and manipulating BIDS datasets";
59 homepage = "https://github.com/bids-standard/pybids";
60 license = licenses.mit;
61 maintainers = with maintainers; [ jonringer ];
62 };
63}