Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
udocker: Fix build (#57002)
Browse files Browse the repository at this point in the history
The latest changes to support better cross-compilation compatibility
have introduced a stricter handling of dependency specifications in
python. Since b4acd97, mock and nosetest should be checkInputs, since
they are used for testing.

Fixes: #56972
  • Loading branch information
knedlsepp authored and xeji committed Mar 7, 2019
1 parent e8d116f commit 61a8aca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/tools/virtualization/udocker/default.nix
Expand Up @@ -12,7 +12,7 @@ buildPythonApplication rec {
sha256 = "134xk7rfj0xki9znryk5qf1nsfa318ahrrsi1k6ia7kipp7i3hb4";
};

buildInputs = [ proot patchelf fakechroot runc simplejson pycurl coreutils nose mock ];
buildInputs = [ proot patchelf fakechroot runc simplejson pycurl coreutils ];

postPatch = ''
substituteInPlace udocker.py --replace /usr/sbin:/sbin:/usr/bin:/bin $PATH
Expand All @@ -22,6 +22,11 @@ buildPythonApplication rec {
substituteInPlace udocker.py --replace "autoinstall = True" "autoinstall = False"
'';

checkInputs = [
nose
mock
];

checkPhase = ''
NOSE_EXCLUDE=test_03_create_repo,test_04_is_repo,test_02__get_group_from_host nosetests -v tests/unit_tests.py
'';
Expand Down

0 comments on commit 61a8aca

Please sign in to comment.