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