1 { lib, stdenv, fetchFromGitHub, installShellFiles, python3, git, git-annex }:
3 python3.pkgs.buildPythonApplication rec {
7 src = fetchFromGitHub {
10 rev = "refs/tags/${version}";
11 hash = "sha256-kCCh1NNbmDjICTjBflxExVus8llADvlRxppOfiwYhN8=";
14 nativeBuildInputs = [ installShellFiles git ];
16 propagatedBuildInputs = with python3.pkgs; [
32 # requests-ftp # not in nixpkgs yet
65 ] ++ lib.optionals stdenv.hostPlatform.isWindows [ colorama ]
66 ++ lib.optionals (python3.pythonOlder "3.10") [ importlib-metadata ];
69 installShellCompletion --cmd datalad \
70 --bash <($out/bin/datalad shell-completion) \
71 --zsh <($out/bin/datalad shell-completion)
72 wrapProgram $out/bin/datalad --prefix PYTHONPATH : "$PYTHONPATH"
78 pythonImportsCheck = [ "datalad" ];
81 description = "Keep code, data, containers under control with git and git-annex";
82 homepage = "https://www.datalad.org";
83 license = licenses.mit;
84 maintainers = with maintainers; [ renesat ];