Commit cdc7603f authored by Ben Darwin's avatar Ben Darwin
Browse files

python311Packages.templateflow: init at 23.1.0

parent 43a00710
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
, setuptools-scm
, nipreps-versions
, pybids
, requests
, tqdm
}:

buildPythonPackage rec {
  pname = "templateflow";
  version = "23.1.0";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "templateflow";
    repo = "python-client";
    rev = "refs/tags/${version}";
    hash = "sha256-8AdXC1IFGfYZ5cvCAyBz0tD3zia+KBILX0tL9IcO2NA=";
  };

  nativeBuildInputs = [ setuptools-scm ];
  propagatedBuildInputs = [
    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

  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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -14146,6 +14146,8 @@ self: super: with self; {
  tempita = callPackage ../development/python-modules/tempita { };
  templateflow = callPackage ../development/python-modules/templateflow { };
  tempora = callPackage ../development/python-modules/tempora { };
  tenacity = callPackage ../development/python-modules/tenacity { };