Skip to content

Commit

Permalink
python312Packages.templateflow: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank committed Nov 6, 2024
1 parent 221b2af commit 65835ab
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions pkgs/development/python-modules/templateflow/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
fetchFromGitHub,
pythonOlder,
setuptools-scm,
hatchling,
hatch-vcs,
nipreps-versions,
pybids,
requests,
Expand All @@ -24,16 +26,26 @@ buildPythonPackage rec {
hash = "sha256-COS767n2aC65m6AJihZb4NhJ4ZK9YkTAZR7Hcnc/LMs=";
};

nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
build-system = [
setuptools-scm
hatchling
hatch-vcs
];

dependencies = [
nipreps-versions
pybids
requests
tqdm
];

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";
Expand Down

0 comments on commit 65835ab

Please sign in to comment.