3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/virtualization/udocker/default.nix
kilianar df23b42a9a udocker: fix build failure
use_2to3 was removed from setuptools with version 58.0.0. There is an
upstream issue for this error
(https://github.com/indigo-dc/udocker/issues/358) and has been resolved
with commit
9f7d6c5f9a.
We apply this commit as a patch.

Disable test_02__load_structure because it fails with a
unittest.mock.InvalidSpecError.
2022-07-05 15:36:33 +02:00

59 lines
1.3 KiB
Nix

{ lib
, fetchFromGitHub
, singularity
, python3Packages
, fetchpatch
}:
python3Packages.buildPythonApplication rec {
pname = "udocker";
version = "1.3.1";
src = fetchFromGitHub {
owner = "indigo-dc";
repo = "udocker";
rev = "v${version}";
sha256 = "0dfsjgidsnah8nrclrq10yz3ja859123z81kq4zdifbrhnrn5a2x";
};
# crun patchelf proot runc fakechroot
# are download statistically linked during runtime
buildInputs = [
singularity
] ++ (with python3Packages; [
pytest-runner
pycurl
]);
patches = [
(fetchpatch {
url = "https://github.com/indigo-dc/udocker/commit/9f7d6c5f9a3925bf87d000603c5b306d73bb0fa3.patch";
sha256 = "sha256-fiqvVqfdVIlILbSs6oDWmbWU9piZEI2oiAKUcmecx9Q=";
})
];
checkInputs = with python3Packages; [
pytestCheckHook
];
disabledTests = [
"test_02__load_structure"
"test_05__get_volume_bindings"
];
disabledTestPaths = [
# Network
"tests/unit/test_curl.py"
"tests/unit/test_dockerioapi.py"
];
meta = with lib; {
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;
};
}