2021-08-05 21:33:18 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, singularity
|
|
|
|
, python3Packages
|
|
|
|
}:
|
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";
|
2021-08-05 21:33:18 +00:00
|
|
|
version = "1.3.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "indigo-dc";
|
2021-08-05 21:33:18 +00:00
|
|
|
repo = "udocker";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
2021-08-05 21:33:18 +00:00
|
|
|
sha256 = "0dfsjgidsnah8nrclrq10yz3ja859123z81kq4zdifbrhnrn5a2x";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
# crun patchelf proot runc fakechroot
|
|
|
|
# are download statistically linked during runtime
|
|
|
|
buildInputs = [
|
|
|
|
singularity
|
|
|
|
] ++ (with python3Packages; [
|
|
|
|
pytest-runner
|
|
|
|
pycurl
|
|
|
|
]);
|
|
|
|
|
|
|
|
checkInputs = with python3Packages; [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
disabledTests = [
|
|
|
|
"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
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
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";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.bzizou ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|