python3Packages.templateflow: cleanup, fix
This commit is contained in:
@@ -2,16 +2,23 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools-scm,
|
||||
hatchling,
|
||||
|
||||
# build-system
|
||||
hatch-vcs,
|
||||
hatchling,
|
||||
setuptools-scm,
|
||||
|
||||
writableTmpDirAsHomeHook,
|
||||
|
||||
# dependenices
|
||||
nipreps-versions,
|
||||
platformdirs,
|
||||
pybids,
|
||||
requests,
|
||||
tqdm,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "templateflow";
|
||||
version = "25.1.1";
|
||||
pyproject = true;
|
||||
@@ -19,18 +26,23 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "templateflow";
|
||||
repo = "python-client";
|
||||
tag = version;
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-QkscrnSURUnZp+42dtVK++EHbHklmWRixpDRhNhHM50=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools-scm
|
||||
hatchling
|
||||
hatch-vcs
|
||||
hatchling
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
writableTmpDirAsHomeHook
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
nipreps-versions
|
||||
platformdirs
|
||||
pybids
|
||||
requests
|
||||
tqdm
|
||||
@@ -38,17 +50,13 @@ buildPythonPackage rec {
|
||||
|
||||
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}";
|
||||
changelog = "https://github.com/templateflow/python-client/releases/tag/${finalAttrs.src.tag}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ bcdarwin ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user