blob: 63bacf94a65b69fe6f5e9e7efe1f9746d680cf00 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools-scm,
hatchling,
hatch-vcs,
nipreps-versions,
pybids,
requests,
tqdm,
}:
buildPythonPackage rec {
pname = "templateflow";
version = "25.0.4";
pyproject = true;
src = fetchFromGitHub {
owner = "templateflow";
repo = "python-client";
tag = version;
hash = "sha256-7N8JJAJwnmesQIoZttcphmUW5HLEi8Rxv70MGNjOO98=";
};
build-system = [
setuptools-scm
hatchling
hatch-vcs
];
dependencies = [
nipreps-versions
pybids
requests
tqdm
];
doCheck = false; # most tests try to download data
postFixup = ''
export HOME=$(mktemp -d)
'';
pythonImportsCheck = [ "templateflow" ];
meta = {
homepage = "https://templateflow.org/python-client";
description = "Python API to query TemplateFlow via pyBIDS";
changelog = "https://github.com/templateflow/python-client/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}
|