1{ lib
2, fetchFromGitHub
3, singularity
4, python3Packages
5, fetchpatch
6}:
7
8python3Packages.buildPythonApplication rec {
9 pname = "udocker";
10 version = "1.3.1";
11
12 src = fetchFromGitHub {
13 owner = "indigo-dc";
14 repo = "udocker";
15 rev = "v${version}";
16 sha256 = "0dfsjgidsnah8nrclrq10yz3ja859123z81kq4zdifbrhnrn5a2x";
17 };
18
19 # crun patchelf proot runc fakechroot
20 # are download statistically linked during runtime
21 buildInputs = [
22 singularity
23 ] ++ (with python3Packages; [
24 pytest-runner
25 pycurl
26 ]);
27
28 patches = [
29 (fetchpatch {
30 url = "https://github.com/indigo-dc/udocker/commit/9f7d6c5f9a3925bf87d000603c5b306d73bb0fa3.patch";
31 sha256 = "sha256-fiqvVqfdVIlILbSs6oDWmbWU9piZEI2oiAKUcmecx9Q=";
32 })
33 ];
34
35 nativeCheckInputs = with python3Packages; [
36 pytestCheckHook
37 ];
38
39 disabledTests = [
40 "test_02__load_structure"
41 "test_05__get_volume_bindings"
42 ];
43
44 disabledTestPaths = [
45 # Network
46 "tests/unit/test_curl.py"
47 "tests/unit/test_dockerioapi.py"
48 ];
49
50 meta = with lib; {
51 description = "basic user tool to execute simple docker containers in user space without root privileges";
52 homepage = "https://indigo-dc.gitbooks.io/udocker";
53 license = licenses.asl20;
54 maintainers = [ maintainers.bzizou ];
55 platforms = platforms.linux;
56 };
57
58}