python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / virtualization / udocker / default.nix
bloba2099847767057999227b1829637001fc13f5292
1 { lib
2 , fetchFromGitHub
3 , singularity
4 , python3Packages
5 , fetchpatch
6 }:
8 python3Packages.buildPythonApplication rec {
9   pname = "udocker";
10   version = "1.3.1";
12   src = fetchFromGitHub {
13     owner = "indigo-dc";
14     repo = "udocker";
15     rev = "v${version}";
16     sha256 = "0dfsjgidsnah8nrclrq10yz3ja859123z81kq4zdifbrhnrn5a2x";
17   };
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   ]);
28   patches = [
29     (fetchpatch {
30       url = "https://github.com/indigo-dc/udocker/commit/9f7d6c5f9a3925bf87d000603c5b306d73bb0fa3.patch";
31       sha256 = "sha256-fiqvVqfdVIlILbSs6oDWmbWU9piZEI2oiAKUcmecx9Q=";
32     })
33   ];
35   checkInputs = 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   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   };