Unverified Commit c9e3f522 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

datalad: 1.2.1 -> 1.2.2, add missing runtime dependency, remove obsolete...

datalad: 1.2.1 -> 1.2.2, add missing runtime dependency, remove obsolete substitution, add maintainer (#387986)
parents b1c5a367 3ff9afad
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -51,19 +51,17 @@

buildPythonPackage rec {
  pname = "datalad";
  version = "1.2.1";
  version = "1.2.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "datalad";
    repo = "datalad";
    tag = version;
    hash = "sha256-QcKhMiJNlETlxmRoPwKKGYK7zKbJ0pQpbRZDyJ+yrN0=";
    hash = "sha256-OjWOWdfAQoCQzc2EH5hBhJ3G/Z62U9oRgv8tp23L/Qw=";
  };

  postPatch = ''
    substituteInPlace datalad/distribution/create_sibling.py \
      --replace-fail "/bin/ls" "${coreutils}/bin/ls"
    # Remove vendorized versioneer.py
    rm versioneer.py
  '';
@@ -121,7 +119,9 @@ buildPythonPackage rec {
    installShellCompletion --cmd datalad \
      --bash <($out/bin/datalad shell-completion) \
      --zsh  <($out/bin/datalad shell-completion)
    wrapProgram $out/bin/datalad --prefix PYTHONPATH : "$PYTHONPATH"
    wrapProgram $out/bin/datalad \
      --prefix PATH : "${git-annex}/bin" \
      --prefix PYTHONPATH : "$PYTHONPATH"
  '';

  preCheck = ''
@@ -240,6 +240,9 @@ buildPythonPackage rec {
    description = "Keep code, data, containers under control with git and git-annex";
    homepage = "https://www.datalad.org";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ renesat ];
    maintainers = with lib.maintainers; [
      renesat
      malik
    ];
  };
}