1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 pytestCheckHook, 7 setuptools, 8 numpy, 9 pandas, 10}: 11 12buildPythonPackage rec { 13 pname = "ancp-bids"; 14 version = "0.3.1"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 # `tests/data` dir missing from PyPI dist 20 src = fetchFromGitHub { 21 owner = "ANCPLabOldenburg"; 22 repo = "ancp-bids"; 23 tag = version; 24 hash = "sha256-brkhXz2b1nR/tjkZQZY5S+P0+GbESvJsANQcVWRCa9k="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 nativeCheckInputs = [ 30 numpy 31 pandas 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ "ancpbids" ]; 36 37 enabledTestPaths = [ "tests/auto" ]; 38 39 disabledTests = [ "test_fetch_dataset" ]; 40 41 meta = with lib; { 42 homepage = "https://ancpbids.readthedocs.io"; 43 description = "Read/write/validate/query BIDS datasets"; 44 changelog = "https://github.com/ANCPLabOldenburg/ancp-bids/releases/tag/${src.tag}"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ bcdarwin ]; 47 }; 48}