2021-07-31 18:21:17 +02:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, singularity
|
|
|
|
, python3Packages
|
2022-07-05 15:08:53 +02:00
|
|
|
, fetchpatch
|
2021-07-31 18:21:17 +02:00
|
|
|
}:
|
2018-02-01 13:36:44 +01:00
|
|
|
|
2021-07-31 18:21:17 +02:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2018-02-01 13:36:44 +01:00
|
|
|
pname = "udocker";
|
2021-07-31 18:21:17 +02:00
|
|
|
version = "1.3.1";
|
2018-02-01 13:36:44 +01:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
src = fetchFromGitHub {
|
2018-02-01 13:36:44 +01:00
|
|
|
owner = "indigo-dc";
|
2021-07-31 18:21:17 +02:00
|
|
|
repo = "udocker";
|
2018-02-01 13:36:44 +01:00
|
|
|
rev = "v${version}";
|
2021-07-31 18:21:17 +02:00
|
|
|
sha256 = "0dfsjgidsnah8nrclrq10yz3ja859123z81kq4zdifbrhnrn5a2x";
|
2018-02-01 13:36:44 +01:00
|
|
|
};
|
|
|
|
|
2021-07-31 18:21:17 +02:00
|
|
|
# crun patchelf proot runc fakechroot
|
|
|
|
# are download statistically linked during runtime
|
|
|
|
buildInputs = [
|
|
|
|
singularity
|
|
|
|
] ++ (with python3Packages; [
|
|
|
|
pytest-runner
|
|
|
|
pycurl
|
|
|
|
]);
|
|
|
|
|
2022-07-05 15:08:53 +02:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/indigo-dc/udocker/commit/9f7d6c5f9a3925bf87d000603c5b306d73bb0fa3.patch";
|
|
|
|
sha256 = "sha256-fiqvVqfdVIlILbSs6oDWmbWU9piZEI2oiAKUcmecx9Q=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-01-21 13:00:00 +01:00
|
|
|
nativeCheckInputs = with python3Packages; [
|
2021-07-31 18:21:17 +02:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-02-01 13:36:44 +01:00
|
|
|
|
2021-07-31 18:21:17 +02:00
|
|
|
disabledTests = [
|
2022-07-05 15:08:53 +02:00
|
|
|
"test_02__load_structure"
|
2021-07-31 18:21:17 +02:00
|
|
|
"test_05__get_volume_bindings"
|
2019-03-07 22:55:12 +01:00
|
|
|
];
|
|
|
|
|
2021-07-31 18:21:17 +02:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Network
|
|
|
|
"tests/unit/test_curl.py"
|
|
|
|
"tests/unit/test_dockerioapi.py"
|
|
|
|
];
|
2018-02-01 13:36:44 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-02-01 13:36:44 +01:00
|
|
|
description = "basic user tool to execute simple docker containers in user space without root privileges";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://indigo-dc.gitbooks.io/udocker";
|
2018-02-01 13:36:44 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.bzizou ];
|
|
|
|
platforms = platforms.linux;
|
2023-11-23 22:09:35 +01:00
|
|
|
mainProgram = "udocker";
|
2018-02-01 13:36:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|