40 # python-version-dependent
52 buildPythonPackage rec {
57 src = fetchFromGitHub {
61 hash = "sha256-XwzYlSP2MbEb0U3tuVOq3NNqLTS08UzSfSFBidHbpAY=";
65 substituteInPlace datalad/distribution/create_sibling.py \
66 --replace-fail "/bin/ls" "${coreutils}/bin/ls"
67 # Remove vendorized versioneer.py
82 optional-dependencies.core ++ optional-dependencies.downloaders ++ optional-dependencies.publish;
84 optional-dependencies = {
99 ++ lib.optionals stdenv.hostPlatform.isWindows [ colorama ]
100 ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]
101 ++ lib.optionals (pythonOlder "3.11") [ typing-extensions ];
109 downloaders-extra = [
110 # requests-ftp # not in nixpkgs yet
112 publish = [ python-gitlab ];
118 duecredit = [ duecredit ];
122 installShellCompletion --cmd datalad \
123 --bash <($out/bin/datalad shell-completion) \
124 --zsh <($out/bin/datalad shell-completion)
125 wrapProgram $out/bin/datalad --prefix PYTHONPATH : "$PYTHONPATH"
132 # tests depend on apps in $PATH which only will get installed after the test
134 # No such file or directory: 'datalad'
138 "test_nested_pushclone_cycle_allplatforms"
139 "test_create_sub_gh3463"
140 "test_create_sub_dataset_dot_no_path"
141 "test_cfg_passthrough"
142 "test_addurls_stdin_input_command_line"
143 "test_run_datalad_help"
144 "test_status_custom_summary_no_repeats"
147 # No such file or directory: 'git-annex-remote-[...]"
149 "test_ensure_datalad_remote_maybe_enable"
151 # "git-annex: unable to use external special remote git-annex-remote-datalad"
152 "test_ria_postclonecfg"
153 "test_ria_postclone_noannex"
155 "test_basic_scenario"
156 "test_annex_get_from_subdir"
157 "test_ensure_datalad_remote_init_and_enable_needed"
158 "test_ensure_datalad_remote_maybe_enable[False]"
159 "test_ensure_datalad_remote_maybe_enable[True]"
166 "test_initremote_basic_fileurl"
167 "test_initremote_basic_httpurl"
170 "test_gitannex_local"
173 "test_obtain_permission_root"
174 "test_source_candidate_subdataset"
175 "test_update_fetch_all"
176 "test_add_archive_dirs"
177 "test_add_archive_content"
178 "test_add_archive_content_strip_leading"
179 "test_add_archive_content_zip"
180 "test_add_archive_content_absolute_path"
181 "test_add_archive_use_archive_dir"
182 "test_add_archive_single_file"
184 "test_add_archive_leading_dir"
185 "test_add_delete_after_and_drop"
186 "test_add_delete_after_and_drop_subdir"
187 "test_override_existing_under_git"
188 "test_copy_file_datalad_specialremote"
189 "test_download_url_archive"
190 "test_download_url_archive_from_subdir"
191 "test_download_url_archive_trailing_separator"
192 "test_download_url_need_datalad_remote"
193 "test_datalad_credential_helper - assert False"
195 # need internet access
197 "test_clone_datasets_root"
199 "test_autoenabled_remote_msg"
200 "test_ria_http_storedataladorg"
202 "test_nonuniform_adjusted_subdataset"
203 "test_install_datasets_root"
204 "test_install_simple_local"
205 "test_install_dataset_from_just_source"
206 "test_install_dataset_from_just_source_via_path"
207 "test_datasets_datalad_org"
208 "test_get_cached_dataset"
209 "test_cached_dataset"
213 "test_get_versioned_url_anon"
214 "test_install_recursive_github"
215 "test_failed_install_multiple"
220 # CommandError: 'git -c diff.ignoreSubmodules=none -c core.quotepath=false ls-files -z -m -d' failed with exitcode 128
221 "test_subsuperdataset_save"
224 nativeCheckInputs = [
234 # Deprecated in 3.13. Use exc_type_str instead.
236 "ignore::DeprecationWarning"
239 pythonImportsCheck = [ "datalad" ];
242 description = "Keep code, data, containers under control with git and git-annex";
243 homepage = "https://www.datalad.org";
244 license = lib.licenses.mit;
245 maintainers = with lib.maintainers; [ renesat ];