python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / pmbootstrap / default.nix
blobed6c4c957a01a70c894da236efae390c74a9a163
1 { stdenv, lib, git, openssl, makeWrapper, buildPythonApplication, pytestCheckHook, ps
2 , fetchPypi, fetchFromGitLab, sudo }:
4 buildPythonApplication rec {
5   pname = "pmbootstrap";
6   version = "1.45.0";
8   src = fetchPypi {
9     inherit pname version;
10     sha256 = "sha256-75ZFzhRsczkwhiUl1upKjSvmqN0RkXaM8cKr4zLgi4w=";
11   };
13   repo = fetchFromGitLab {
14     domain = "gitlab.com";
15     owner = "postmarketOS";
16     repo = pname;
17     rev = version;
18     sha256 = "sha256-tG1+vUJW9JIdYpcRn8J0fCIZh29hYo8wSlBKwTUxyMU=";
19   };
21   pmb_test = "${repo}/test";
23   checkInputs = [ pytestCheckHook git openssl ps sudo ];
25   # Add test dependency in PATH
26   preCheck = "export PYTHONPATH=$PYTHONPATH:${pmb_test}";
28   # skip impure tests
29   disabledTests = [
30     "test_apk_static"
31     "test_aportgen"
32     "test_aportgen_device_wizard"
33     "test_bootimg"
34     "test_build_depends_binary_outdated"
35     "test_build_depends_high_level"
36     "test_build_depends_no_binary_error"
37     "test_build_is_necessary"
38     "test_build_local_source_high_level"
39     "test_build_src_invalid_path"
40     "test_can_fast_forward"
41     "test_check_build_for_arch"
42     "test_chroot_arguments"
43     "test_chroot_interactive_shell"
44     "test_chroot_interactive_shell_user"
45     "test_clean_worktree"
46     "test_config_user"
47     "test_cross_compile_distcc"
48     "test_crossdirect"
49     "test_file"
50     "test_filter_aport_packages"
51     "test_filter_missing_packages_binary_exists"
52     "test_filter_missing_packages_invalid"
53     "test_filter_missing_packages_pmaports"
54     "test_finish"
55     "test_folder_size"
56     "test_get_apkbuild"
57     "test_get_depends"
58     "test_get_upstream_remote"
59     "test_helpers_lint"
60     "test_helpers_package_get_apkindex"
61     "test_helpers_repo"
62     "test_helpers_ui"
63     "test_init_buildenv"
64     "test_kconfig_check"
65     "test_keys"
66     "test_newapkbuild"
67     "test_package"
68     "test_package_from_aports"
69     "test_pkgrel_bump"
70     "test_pmbootstrap_status"
71     "test_print_checks_git_repo"
72     "test_pull"
73     "test_qemu_running_processes"
74     "test_questions_additional_options"
75     "test_questions_bootimg"
76     "test_questions_channel"
77     "test_questions_keymaps"
78     "test_questions_work_path"
79     "test_read_config_channel"
80     "test_recurse_invalid"
81     "test_run_abuild"
82     "test_run_core"
83     "test_shell_escape"
84     "test_skip_already_built"
85     "test_switch_to_channel_branch"
86     "test_version"
87   ];
89   makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ git openssl ]}" ];
91   meta = with lib; {
92     description = "Sophisticated chroot/build/flash tool to develop and install postmarketOS";
93     homepage = "https://gitlab.com/postmarketOS/pmbootstrap";
94     license = licenses.gpl3Plus;
95     maintainers = with maintainers; [ onny ];
96     # https://github.com/NixOS/nixpkgs/pull/146576#issuecomment-974267651
97     broken = stdenv.isDarwin && stdenv.isAarch64;
98   };