41 # python-version-dependent
53 buildPythonPackage rec {
57 src = fetchFromGitHub {
60 rev = "refs/tags/${version}";
61 hash = "sha256-Y7P9vRfFUJ5ZhVRTAYeImI9cv1LtWVAeBoBl6wANnrc=";
65 substituteInPlace datalad/distribution/create_sibling.py \
66 --replace-fail "/bin/ls" "${coreutils}/bin/ls"
67 # Remove vendorized versioneer.py
98 # requests-ftp # not in nixpkgs yet
121 ++ lib.optionals stdenv.hostPlatform.isWindows [ colorama ]
122 ++ lib.optionals (pythonOlder "3.9") [ importlib-resources ]
123 ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]
124 ++ lib.optionals (pythonOlder "3.11") [ typing-extensions ];
127 installShellCompletion --cmd datalad \
128 --bash <($out/bin/datalad shell-completion) \
129 --zsh <($out/bin/datalad shell-completion)
130 wrapProgram $out/bin/datalad --prefix PYTHONPATH : "$PYTHONPATH"
137 # tests depend on apps in $PATH which only will get installed after the test
139 # No such file or directory: 'datalad'
143 "test_nested_pushclone_cycle_allplatforms"
144 "test_create_sub_gh3463"
145 "test_create_sub_dataset_dot_no_path"
146 "test_cfg_passthrough"
147 "test_addurls_stdin_input_command_line"
148 "test_run_datalad_help"
149 "test_status_custom_summary_no_repeats"
152 # No such file or directory: 'git-annex-remote-[...]"
154 "test_ensure_datalad_remote_maybe_enable"
156 # "git-annex: unable to use external special remote git-annex-remote-datalad"
157 "test_ria_postclonecfg"
158 "test_ria_postclone_noannex"
160 "test_basic_scenario"
161 "test_annex_get_from_subdir"
162 "test_ensure_datalad_remote_init_and_enable_needed"
163 "test_ensure_datalad_remote_maybe_enable[False]"
164 "test_ensure_datalad_remote_maybe_enable[True]"
171 "test_initremote_basic_fileurl"
172 "test_initremote_basic_httpurl"
175 "test_gitannex_local"
178 "test_obtain_permission_root"
179 "test_source_candidate_subdataset"
180 "test_update_fetch_all"
181 "test_add_archive_dirs"
182 "test_add_archive_content"
183 "test_add_archive_content_strip_leading"
184 "test_add_archive_content_zip"
185 "test_add_archive_content_absolute_path"
186 "test_add_archive_use_archive_dir"
187 "test_add_archive_single_file"
189 "test_add_archive_leading_dir"
190 "test_add_delete_after_and_drop"
191 "test_add_delete_after_and_drop_subdir"
192 "test_override_existing_under_git"
193 "test_copy_file_datalad_specialremote"
194 "test_download_url_archive"
195 "test_download_url_archive_from_subdir"
196 "test_download_url_archive_trailing_separator"
197 "test_download_url_need_datalad_remote"
198 "test_datalad_credential_helper - assert False"
200 # need internet access
202 "test_clone_datasets_root"
204 "test_autoenabled_remote_msg"
205 "test_ria_http_storedataladorg"
207 "test_nonuniform_adjusted_subdataset"
208 "test_install_datasets_root"
209 "test_install_simple_local"
210 "test_install_dataset_from_just_source"
211 "test_install_dataset_from_just_source_via_path"
212 "test_datasets_datalad_org"
213 "test_get_cached_dataset"
214 "test_cached_dataset"
218 "test_get_versioned_url_anon"
219 "test_install_recursive_github"
220 "test_failed_install_multiple"
226 nativeCheckInputs = [
234 pythonImportsCheck = [ "datalad" ];
237 description = "Keep code, data, containers under control with git and git-annex";
238 homepage = "https://www.datalad.org";
239 license = lib.licenses.mit;
240 maintainers = with lib.maintainers; [ renesat ];