diff --git a/pkgs/development/python-modules/templateflow/default.nix b/pkgs/development/python-modules/templateflow/default.nix index f00ce991ea3e..32f922065e56 100644 --- a/pkgs/development/python-modules/templateflow/default.nix +++ b/pkgs/development/python-modules/templateflow/default.nix @@ -4,6 +4,8 @@ fetchFromGitHub, pythonOlder, setuptools-scm, + hatchling, + hatch-vcs, nipreps-versions, pybids, requests, @@ -24,8 +26,13 @@ buildPythonPackage rec { hash = "sha256-COS767n2aC65m6AJihZb4NhJ4ZK9YkTAZR7Hcnc/LMs="; }; - nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ + build-system = [ + setuptools-scm + hatchling + hatch-vcs + ]; + + dependencies = [ nipreps-versions pybids requests @@ -33,7 +40,12 @@ buildPythonPackage rec { ]; doCheck = false; # most tests try to download data - #pythonImportsCheck = [ "templateflow" ]; # touches $HOME/.cache, hence needs https://github.com/NixOS/nixpkgs/pull/120300 + + postFixup = '' + export HOME=$(mktemp -d) + ''; + + pythonImportsCheck = [ "templateflow" ]; meta = with lib; { homepage = "https://templateflow.org/python-client";