Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 49 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fetchpatch, 6 pythonOlder, 7 pytestCheckHook, 8 setuptools, 9 numpy, 10 pandas, 11}: 12 13buildPythonPackage rec { 14 pname = "ancp-bids"; 15 version = "0.2.5"; 16 pyproject = true; 17 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-bfHphFecPHKoVow8v+20LuQt6X1BGGtoTK4T9vhIkSc="; 26 }; 27 28 build-system = [ setuptools ]; 29 30 nativeCheckInputs = [ 31 numpy 32 pandas 33 pytestCheckHook 34 ]; 35 36 pythonImportsCheck = [ "ancpbids" ]; 37 38 pytestFlagsArray = [ "tests/auto" ]; 39 40 disabledTests = [ "test_fetch_dataset" ]; 41 42 meta = with lib; { 43 homepage = "https://ancpbids.readthedocs.io"; 44 description = "Read/write/validate/query BIDS datasets"; 45 changelog = "https://github.com/ANCPLabOldenburg/ancp-bids/releases/tag/${version}"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ bcdarwin ]; 48 }; 49}