2021-08-05 21:33:18 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, singularity
|
|
|
|
, python3Packages
|
2024-09-19 14:19:46 +00:00
|
|
|
, testers
|
|
|
|
, udocker
|
2021-08-05 21:33:18 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "udocker";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.3.17";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "indigo-dc";
|
2021-08-05 21:33:18 +00:00
|
|
|
repo = "udocker";
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-P49fkLvdCm/Eco+nD3SGM04PRQatBzq9CHlayueQetk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace-fail "'pytest-runner'," ""
|
|
|
|
'';
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
# crun patchelf proot runc fakechroot
|
|
|
|
# are download statistically linked during runtime
|
|
|
|
buildInputs = [
|
|
|
|
singularity
|
2024-09-19 14:19:46 +00:00
|
|
|
];
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
dependencies = with python3Packages; [
|
|
|
|
pycurl
|
2022-07-14 12:49:19 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [
|
2021-08-05 21:33:18 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
disabledTests = [
|
2022-07-14 12:49:19 +00:00
|
|
|
"test_02__load_structure"
|
2021-08-05 21:33:18 +00:00
|
|
|
"test_05__get_volume_bindings"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Network
|
|
|
|
"tests/unit/test_curl.py"
|
|
|
|
"tests/unit/test_dockerioapi.py"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
passthru = {
|
|
|
|
tests.version = testers.testVersion { package = udocker; };
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "basic user tool to execute simple docker containers in user space without root privileges";
|
|
|
|
homepage = "https://indigo-dc.gitbooks.io/udocker";
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/indigo-dc/udocker/releases/tag/${version}";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ bzizou ];
|
|
|
|
platforms = lib.platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "udocker";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|