1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, fetchpatch 5, pythonOlder 6, pytestCheckHook 7, setuptools 8, wheel 9, numpy 10, pandas 11}: 12 13buildPythonPackage rec { 14 pname = "ancp-bids"; 15 version = "0.2.1"; 16 format = "pyproject"; 17 disabled = pythonOlder "3.7"; 18 19 # `tests/data` dir missing from PyPI dist 20 src = fetchFromGitHub { 21 owner = "ANCPLabOldenburg"; 22 repo = pname; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-Nu9pulVSZysgm/F7jl+VpoqMCiHeysZjQDQ1dT7AnpE="; 25 }; 26 27 patches = [ 28 # https://github.com/ANCPLabOldenburg/ancp-bids/pull/78 29 (fetchpatch { 30 name = "unpin-wheel-build-dependency.patch"; 31 url = "https://github.com/ANCPLabOldenburg/ancp-bids/commit/6e7a0733002845aacb0152c5aacfb42054a9b65e.patch"; 32 hash = "sha256-WbQRwb8Wew46OJu+zo7n4qBtgtH/Lr6x3YHAyN9ko9M="; 33 }) 34 ]; 35 36 nativeBuildInputs = [ 37 setuptools 38 wheel 39 ]; 40 41 nativeCheckInputs = [ 42 numpy 43 pandas 44 pytestCheckHook 45 ]; 46 47 pythonImportsCheck = [ 48 "ancpbids" 49 ]; 50 51 pytestFlagsArray = [ "tests/auto" ]; 52 53 disabledTests = [ "test_fetch_dataset" ]; 54 55 meta = with lib; { 56 homepage = "https://ancpbids.readthedocs.io"; 57 description = "Read/write/validate/query BIDS datasets"; 58 license = licenses.mit; 59 maintainers = with maintainers; [ bcdarwin ]; 60 }; 61}