50 lines
1,020 B
Nix
50 lines
1,020 B
Nix
|
{
|
||
|
lib,
|
||
|
buildPythonPackage,
|
||
|
fetchFromGitHub,
|
||
|
fetchpatch,
|
||
|
pythonOlder,
|
||
|
pytestCheckHook,
|
||
|
setuptools,
|
||
|
numpy,
|
||
|
pandas,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "ancp-bids";
|
||
|
version = "0.2.5";
|
||
|
pyproject = true;
|
||
|
|
||
|
disabled = pythonOlder "3.7";
|
||
|
|
||
|
# `tests/data` dir missing from PyPI dist
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "ANCPLabOldenburg";
|
||
|
repo = pname;
|
||
|
rev = "refs/tags/${version}";
|
||
|
hash = "sha256-bfHphFecPHKoVow8v+20LuQt6X1BGGtoTK4T9vhIkSc=";
|
||
|
};
|
||
|
|
||
|
build-system = [ setuptools ];
|
||
|
|
||
|
nativeCheckInputs = [
|
||
|
numpy
|
||
|
pandas
|
||
|
pytestCheckHook
|
||
|
];
|
||
|
|
||
|
pythonImportsCheck = [ "ancpbids" ];
|
||
|
|
||
|
pytestFlagsArray = [ "tests/auto" ];
|
||
|
|
||
|
disabledTests = [ "test_fetch_dataset" ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
homepage = "https://ancpbids.readthedocs.io";
|
||
|
description = "Read/write/validate/query BIDS datasets";
|
||
|
changelog = "https://github.com/ANCPLabOldenburg/ancp-bids/releases/tag/${version}";
|
||
|
license = licenses.mit;
|
||
|
maintainers = with maintainers; [ bcdarwin ];
|
||
|
};
|
||
|
}
|