Merge pull request #226027 from bcdarwin/unbreak-datalad

datalad: 0.16.5 -> 0.18.3; unbreak
This commit is contained in:
Weijia Wang 2023-04-26 01:12:57 +03:00 committed by GitHub
commit dac8b2376c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,14 @@
{ lib, stdenv, fetchFromGitHub, installShellFiles, python3, git }:
{ lib, stdenv, fetchFromGitHub, installShellFiles, python3, git, git-annex }:
python3.pkgs.buildPythonApplication rec {
pname = "datalad";
version = "0.16.5";
version = "0.18.3";
src = fetchFromGitHub {
owner = "datalad";
repo = pname;
rev = version;
hash = "sha256-F5UFW0/XqntrHclpj3TqoAwuHJbiiv5a7/4MnFoJ1dE=";
hash = "sha256-vqO37o5NxQk+gHfvhM1I2ea9/q9ZaLWkDEyPYJKEPcs";
};
nativeBuildInputs = [ installShellFiles git ];
@ -24,6 +24,9 @@ python3.pkgs.buildPythonApplication rec {
patool
tqdm
annexremote
looseversion
setuptools
git-annex
# downloaders-extra
# requests-ftp # not in nixpkgs yet
@ -66,11 +69,14 @@ python3.pkgs.buildPythonApplication rec {
installShellCompletion --cmd datalad \
--bash <($out/bin/datalad shell-completion) \
--zsh <($out/bin/datalad shell-completion)
wrapProgram $out/bin/datalad --prefix PYTHONPATH : "$PYTHONPATH"
'';
# no tests
doCheck = false;
pythonImportsCheck = [ "datalad" ];
meta = with lib; {
description = "Keep code, data, containers under control with git and git-annex";
homepage = "https://www.datalad.org";