diff options
author | Ben Siraphob <bensiraphob@gmail.com> | 2021-08-01 01:30:02 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-01 01:30:02 +0700 |
commit | 9d865ef9f640be342cc1d9317abbf116cb1c109e (patch) | |
tree | 53a9d99c161b9ba32cf700033875ba46447fca70 /pkgs | |
parent | f47901cb240e4e9d978c2bbe13cd53dbb89603d3 (diff) | |
parent | 01c5b01858ff6870ec138c5fefdfaa13e9f6725e (diff) | |
download | nixpkgs-9d865ef9f640be342cc1d9317abbf116cb1c109e.tar nixpkgs-9d865ef9f640be342cc1d9317abbf116cb1c109e.tar.gz nixpkgs-9d865ef9f640be342cc1d9317abbf116cb1c109e.tar.bz2 nixpkgs-9d865ef9f640be342cc1d9317abbf116cb1c109e.tar.lz nixpkgs-9d865ef9f640be342cc1d9317abbf116cb1c109e.tar.xz nixpkgs-9d865ef9f640be342cc1d9317abbf116cb1c109e.tar.zst nixpkgs-9d865ef9f640be342cc1d9317abbf116cb1c109e.zip |
Merge pull request #132231 from Artturin/udocker-fix
udocker: 1.1.3 -> 1.3.1 and make usable
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/virtualization/udocker/default.nix | 49 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 29 insertions, 22 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"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c1b3d8d17dd..0ef3ab8e60e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27670,7 +27670,7 @@ in umurmur = callPackage ../applications/networking/umurmur { }; - udocker = pythonPackages.callPackage ../tools/virtualization/udocker { }; + udocker = callPackage ../tools/virtualization/udocker { }; uefitoolPackages = recurseIntoAttrs (callPackage ../tools/system/uefitool/variants.nix {}); uefitool = uefitoolPackages.new-engine; |