diff options
author | Artturin <Artturin@artturin.com> | 2021-07-31 19:21:17 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2021-07-31 20:50:20 +0300 |
commit | 01c5b01858ff6870ec138c5fefdfaa13e9f6725e (patch) | |
tree | f5dfaf6c74c3aefd81200e31ab995b6f470cb1ea /pkgs/tools | |
parent | ecc968543c6d2911303f32ad92b354661a0663d9 (diff) | |
download | nixpkgs-01c5b01858ff6870ec138c5fefdfaa13e9f6725e.tar nixpkgs-01c5b01858ff6870ec138c5fefdfaa13e9f6725e.tar.gz nixpkgs-01c5b01858ff6870ec138c5fefdfaa13e9f6725e.tar.bz2 nixpkgs-01c5b01858ff6870ec138c5fefdfaa13e9f6725e.tar.lz nixpkgs-01c5b01858ff6870ec138c5fefdfaa13e9f6725e.tar.xz nixpkgs-01c5b01858ff6870ec138c5fefdfaa13e9f6725e.tar.zst nixpkgs-01c5b01858ff6870ec138c5fefdfaa13e9f6725e.zip |
udocker: 1.1.3 -> 1.3.1 and make usable
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/virtualization/udocker/default.nix | 49 |
1 files changed, 28 insertions, 21 deletions
diff --git a/pkgs/tools/virtualization/udocker/default.nix b/pkgs/tools/virtualization/udocker/default.nix index fb067de8212..6584c5bee5c 100644 --- a/pkgs/tools/virtualization/udocker/default.nix +++ b/pkgs/tools/virtualization/udocker/default.nix @@ -1,35 +1,42 @@ -{ lib, fetchFromGitHub, proot, patchelf, fakechroot, runc, simplejson, pycurl, coreutils, nose, mock, buildPythonApplication }: +{ lib +, fetchFromGitHub +, singularity +, python3Packages +}: -buildPythonApplication rec { - - version = "1.1.3"; +python3Packages.buildPythonApplication rec { pname = "udocker"; + version = "1.3.1"; src = fetchFromGitHub { owner = "indigo-dc"; - repo = "udocker" ; + repo = "udocker"; rev = "v${version}"; - sha256 = "1c8y1p3brj987drikwrby8m1hdr40ja4anx0p4xsij3ll2h62w6z"; + sha256 = "0dfsjgidsnah8nrclrq10yz3ja859123z81kq4zdifbrhnrn5a2x"; }; - buildInputs = [ proot patchelf fakechroot runc simplejson pycurl coreutils ]; - - postPatch = '' - substituteInPlace udocker.py --replace /usr/sbin:/sbin:/usr/bin:/bin $PATH - substituteInPlace udocker.py --replace /bin/chmod ${coreutils}/bin/chmod - substituteInPlace udocker.py --replace /bin/rm ${coreutils}/bin/rm - substituteInPlace tests/unit_tests.py --replace /bin/rm ${coreutils}/bin/rm - substituteInPlace udocker.py --replace "autoinstall = True" "autoinstall = False" - ''; + # crun patchelf proot runc fakechroot + # are download statistically linked during runtime + buildInputs = [ + singularity + ] ++ (with python3Packages; [ + pytest-runner + pycurl + ]); + + checkInputs = with python3Packages; [ + pytestCheckHook + ]; - checkInputs = [ - nose - mock + disabledTests = [ + "test_05__get_volume_bindings" ]; - checkPhase = '' - NOSE_EXCLUDE=test_03_create_repo,test_04_is_repo,test_02__get_group_from_host nosetests -v tests/unit_tests.py - ''; + 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"; |