1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, pytestCheckHook
6, setuptools
7, numpy
8, pandas
9}:
10
11buildPythonPackage rec {
12 pname = "ancp-bids";
13 version = "0.2.1";
14 disabled = pythonOlder "3.7";
15 format = "pyproject";
16
17 # `tests/data` dir missing from PyPI dist
18 src = fetchFromGitHub {
19 owner = "ANCPLabOldenburg";
20 repo = pname;
21 rev = "refs/tags/${version}";
22 hash = "sha256-Nu9pulVSZysgm/F7jl+VpoqMCiHeysZjQDQ1dT7AnpE=";
23 };
24
25 nativeBuildInputs = [ setuptools ] ;
26
27 checkInputs = [ numpy pandas pytestCheckHook ];
28 pythonImportsCheck = [
29 "ancpbids"
30 ];
31
32 pytestFlagsArray = [ "tests/auto" ];
33 disabledTests = [ "test_fetch_dataset" ];
34
35 meta = with lib; {
36 homepage = "https://ancpbids.readthedocs.io";
37 description = "Read/write/validate/query BIDS datasets";
38 license = licenses.mit;
39 maintainers = with maintainers; [ bcdarwin ];
40 };
41}