biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / virtualization / udocker / default.nix
blob25ae2fe9ee33bda5075af72a8095149bcc8742fb
1 { lib
2 , fetchFromGitHub
3 , singularity
4 , python3Packages
5 , testers
6 , udocker
7 }:
9 python3Packages.buildPythonApplication rec {
10   pname = "udocker";
11   version = "1.3.17";
13   src = fetchFromGitHub {
14     owner = "indigo-dc";
15     repo = "udocker";
16     rev = "refs/tags/${version}";
17     hash = "sha256-P49fkLvdCm/Eco+nD3SGM04PRQatBzq9CHlayueQetk=";
18   };
20   postPatch = ''
21     substituteInPlace setup.py \
22       --replace-fail "'pytest-runner'," ""
23   '';
25   # crun patchelf proot runc fakechroot
26   # are download statistically linked during runtime
27   buildInputs = [
28     singularity
29   ];
31   dependencies = with python3Packages; [
32     pycurl
33   ];
35   nativeCheckInputs = with python3Packages; [
36     pytestCheckHook
37   ];
39   disabledTests = [
40     "test_02__load_structure"
41     "test_05__get_volume_bindings"
42   ];
44   disabledTestPaths = [
45     # Network
46     "tests/unit/test_curl.py"
47     "tests/unit/test_dockerioapi.py"
48   ];
50   passthru = {
51     tests.version = testers.testVersion { package = udocker; };
52   };
54   meta = {
55     description = "basic user tool to execute simple docker containers in user space without root privileges";
56     homepage = "https://indigo-dc.gitbooks.io/udocker";
57     changelog = "https://github.com/indigo-dc/udocker/releases/tag/${version}";
58     license = lib.licenses.asl20;
59     maintainers = with lib.maintainers; [ bzizou ];
60     platforms = lib.platforms.linux;
61     mainProgram = "udocker";
62   };