biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / version-management / datalad / default.nix
blob71b5affb59932787cb6a2934d9130696162da930
1 { lib, stdenv, fetchFromGitHub, installShellFiles, python3, git, git-annex }:
3 python3.pkgs.buildPythonApplication rec {
4   pname = "datalad";
5   version = "0.19.6";
7   src = fetchFromGitHub {
8     owner = "datalad";
9     repo = pname;
10     rev = "refs/tags/${version}";
11     hash = "sha256-kCCh1NNbmDjICTjBflxExVus8llADvlRxppOfiwYhN8=";
12   };
14   nativeBuildInputs = [ installShellFiles git ];
16   propagatedBuildInputs = with python3.pkgs; [
17     # core
18     platformdirs
19     chardet
20     iso8601
21     humanize
22     fasteners
23     packaging
24     patool
25     tqdm
26     annexremote
27     looseversion
28     setuptools
29     git-annex
31     # downloaders-extra
32     # requests-ftp # not in nixpkgs yet
34     # downloaders
35     boto
36     keyrings-alt
37     keyring
38     msgpack
39     requests
41     # publish
42     python-gitlab
44     # misc
45     argcomplete
46     pyperclip
47     python-dateutil
49     # metadata
50     simplejson
51     whoosh
53     # metadata-extra
54     pyyaml
55     mutagen
56     exifread
57     python-xmp-toolkit
58     pillow
60     # duecredit
61     duecredit
63     # python>=3.8
64     distro
65   ] ++ lib.optionals stdenv.hostPlatform.isWindows [ colorama ]
66     ++ lib.optionals (python3.pythonOlder "3.10") [ importlib-metadata ];
68   postInstall = ''
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"
73   '';
75   # no tests
76   doCheck = false;
78   pythonImportsCheck = [ "datalad" ];
80   meta = with lib; {
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 ];
85   };