2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools-scm,
|
|
|
|
nipreps-versions,
|
|
|
|
pybids,
|
|
|
|
requests,
|
|
|
|
tqdm,
|
2024-02-07 01:22:34 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "templateflow";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "24.1.0";
|
2024-02-07 01:22:34 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "templateflow";
|
|
|
|
repo = "python-client";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-UxYJnKOqIIf10UW5xJ7MrFHtZY5WNVi5oZgdozj65Z8=";
|
2024-02-07 01:22:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
nipreps-versions
|
|
|
|
pybids
|
|
|
|
requests
|
|
|
|
tqdm
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
doCheck = false; # most tests try to download data
|
2024-02-07 01:22:34 +00:00
|
|
|
#pythonImportsCheck = [ "templateflow" ]; # touches $HOME/.cache, hence needs https://github.com/NixOS/nixpkgs/pull/120300
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://templateflow.org/python-client";
|
|
|
|
description = "Python API to query TemplateFlow via pyBIDS";
|
|
|
|
changelog = "https://github.com/templateflow/python-client/releases/tag/${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|