1 { stdenv, lib, git, openssl, makeWrapper, buildPythonApplication, pytestCheckHook, ps
2 , fetchPypi, fetchFromGitLab, sudo }:
4 buildPythonApplication rec {
10 sha256 = "sha256-75ZFzhRsczkwhiUl1upKjSvmqN0RkXaM8cKr4zLgi4w=";
13 repo = fetchFromGitLab {
14 domain = "gitlab.com";
15 owner = "postmarketOS";
18 sha256 = "sha256-tG1+vUJW9JIdYpcRn8J0fCIZh29hYo8wSlBKwTUxyMU=";
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}";
32 "test_aportgen_device_wizard"
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"
47 "test_cross_compile_distcc"
50 "test_filter_aport_packages"
51 "test_filter_missing_packages_binary_exists"
52 "test_filter_missing_packages_invalid"
53 "test_filter_missing_packages_pmaports"
58 "test_get_upstream_remote"
60 "test_helpers_package_get_apkindex"
68 "test_package_from_aports"
70 "test_pmbootstrap_status"
71 "test_print_checks_git_repo"
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"
84 "test_skip_already_built"
85 "test_switch_to_channel_branch"
89 makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ git openssl ]}" ];
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;