datalad: format
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
parent
47b4b80c07
commit
9e885bb15b
@ -1,4 +1,15 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub, installShellFiles, python3, git, git-annex, p7zip, curl, coreutils }:
|
{
|
||||||
|
lib,
|
||||||
|
stdenv,
|
||||||
|
fetchFromGitHub,
|
||||||
|
installShellFiles,
|
||||||
|
python3,
|
||||||
|
git,
|
||||||
|
git-annex,
|
||||||
|
p7zip,
|
||||||
|
curl,
|
||||||
|
coreutils,
|
||||||
|
}:
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "datalad";
|
pname = "datalad";
|
||||||
@ -16,47 +27,53 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
--replace-fail "/bin/ls" "${coreutils}/bin/ls"
|
--replace-fail "/bin/ls" "${coreutils}/bin/ls"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles git ];
|
nativeBuildInputs = [
|
||||||
|
installShellFiles
|
||||||
|
git
|
||||||
|
];
|
||||||
|
|
||||||
build-system = [ python3.pkgs.setuptools ];
|
build-system = [ python3.pkgs.setuptools ];
|
||||||
|
|
||||||
dependencies = with python3.pkgs; [
|
dependencies =
|
||||||
# core
|
with python3.pkgs;
|
||||||
platformdirs
|
[
|
||||||
chardet
|
# core
|
||||||
iso8601
|
platformdirs
|
||||||
humanize
|
chardet
|
||||||
fasteners
|
iso8601
|
||||||
packaging
|
humanize
|
||||||
patool
|
fasteners
|
||||||
tqdm
|
packaging
|
||||||
annexremote
|
patool
|
||||||
looseversion
|
tqdm
|
||||||
setuptools
|
annexremote
|
||||||
git-annex
|
looseversion
|
||||||
|
setuptools
|
||||||
|
git-annex
|
||||||
|
|
||||||
# downloaders-extra
|
# downloaders-extra
|
||||||
# requests-ftp # not in nixpkgs yet
|
# requests-ftp # not in nixpkgs yet
|
||||||
|
|
||||||
# downloaders
|
# downloaders
|
||||||
boto3
|
boto3
|
||||||
keyrings-alt
|
keyrings-alt
|
||||||
keyring
|
keyring
|
||||||
msgpack
|
msgpack
|
||||||
requests
|
requests
|
||||||
|
|
||||||
# publish
|
# publish
|
||||||
python-gitlab
|
python-gitlab
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
argcomplete
|
argcomplete
|
||||||
pyperclip
|
pyperclip
|
||||||
python-dateutil
|
python-dateutil
|
||||||
# duecredit
|
# duecredit
|
||||||
duecredit
|
duecredit
|
||||||
# python>=3.8
|
# python>=3.8
|
||||||
distro
|
distro
|
||||||
] ++ lib.optionals stdenv.hostPlatform.isWindows [ colorama ]
|
]
|
||||||
|
++ lib.optionals stdenv.hostPlatform.isWindows [ colorama ]
|
||||||
++ lib.optionals (python3.pythonOlder "3.9") [ importlib-resources ]
|
++ lib.optionals (python3.pythonOlder "3.9") [ importlib-resources ]
|
||||||
++ lib.optionals (python3.pythonOlder "3.10") [ importlib-metadata ]
|
++ lib.optionals (python3.pythonOlder "3.10") [ importlib-metadata ]
|
||||||
++ lib.optionals (python3.pythonOlder "3.11") [ typing_extensions ];
|
++ lib.optionals (python3.pythonOlder "3.11") [ typing_extensions ];
|
||||||
@ -161,7 +178,13 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
"test_wtf"
|
"test_wtf"
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [ p7zip python3.pkgs.pytestCheckHook git-annex curl python3.pkgs.httpretty ];
|
nativeCheckInputs = [
|
||||||
|
p7zip
|
||||||
|
python3.pkgs.pytestCheckHook
|
||||||
|
git-annex
|
||||||
|
curl
|
||||||
|
python3.pkgs.httpretty
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "datalad" ];
|
pythonImportsCheck = [ "datalad" ];
|
||||||
|
|
||||||
@ -171,4 +194,4 @@ python3.pkgs.buildPythonApplication rec {
|
|||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = with lib.maintainers; [ renesat ];
|
maintainers = with lib.maintainers; [ renesat ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user