Unverified Commit 9e885bb1 authored by Florian Brandes's avatar Florian Brandes
Browse files

datalad: format

parent 47b4b80c
Loading
Loading
Loading
Loading
+64 −41
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub, installShellFiles, python3, git, git-annex, p7zip, curl, coreutils }:
{
  lib,
  stdenv,
  fetchFromGitHub,
  installShellFiles,
  python3,
  git,
  git-annex,
  p7zip,
  curl,
  coreutils,
}:

python3.pkgs.buildPythonApplication rec {
  pname = "datalad";
@@ -16,11 +27,16 @@ python3.pkgs.buildPythonApplication rec {
      --replace-fail "/bin/ls" "${coreutils}/bin/ls"
  '';

  nativeBuildInputs = [ installShellFiles git ];
  nativeBuildInputs = [
    installShellFiles
    git
  ];

  build-system = [ python3.pkgs.setuptools ];

  dependencies = with python3.pkgs; [
  dependencies =
    with python3.pkgs;
    [
      # core
      platformdirs
      chardet
@@ -56,7 +72,8 @@ python3.pkgs.buildPythonApplication rec {
      duecredit
      # python>=3.8
      distro
  ] ++ lib.optionals stdenv.hostPlatform.isWindows [ colorama ]
    ]
    ++ lib.optionals stdenv.hostPlatform.isWindows [ colorama ]
    ++ lib.optionals (python3.pythonOlder "3.9") [ importlib-resources ]
    ++ lib.optionals (python3.pythonOlder "3.10") [ importlib-metadata ]
    ++ lib.optionals (python3.pythonOlder "3.11") [ typing_extensions ];
@@ -161,7 +178,13 @@ python3.pkgs.buildPythonApplication rec {
    "test_wtf"
  ];

  nativeCheckInputs = [ p7zip python3.pkgs.pytestCheckHook git-annex curl python3.pkgs.httpretty ];
  nativeCheckInputs = [
    p7zip
    python3.pkgs.pytestCheckHook
    git-annex
    curl
    python3.pkgs.httpretty
  ];

  pythonImportsCheck = [ "datalad" ];