12 python3Packages.buildPythonApplication rec {
13 pname = "pmbootstrap";
17 src = fetchFromGitLab {
18 owner = "postmarketos";
21 hash = "sha256-0hC84Gyfr1FOpZGAc7pAhz/QBSTA5A/Lu/ZJdzlEcX4=";
24 pmb_test = "${src}/test";
26 # Tests depend on sudo
27 doCheck = stdenv.hostPlatform.isLinux;
30 python3Packages.setuptools
34 python3Packages.pytestCheckHook
41 # Add test dependency in PATH
42 preCheck = "export PYTHONPATH=$PYTHONPATH:${pmb_test}";
48 "test_aportgen_device_wizard"
50 "test_build_abuild_leftovers"
51 "test_build_depends_binary_outdated"
52 "test_build_depends_high_level"
53 "test_build_depends_no_binary_error"
54 "test_build_is_necessary"
55 "test_build_local_source_high_level"
56 "test_build_src_invalid_path"
58 "test_can_fast_forward"
59 "test_check_build_for_arch"
61 "test_chroot_arguments"
62 "test_chroot_interactive_shell"
63 "test_chroot_interactive_shell_user"
67 "test_cross_compile_distcc"
70 "test_extract_version"
72 "test_filter_aport_packages"
73 "test_filter_missing_packages_binary_exists"
74 "test_filter_missing_packages_invalid"
75 "test_filter_missing_packages_pmaports"
78 "test_get_all_component_names"
81 "test_get_upstream_remote"
83 "test_helpers_package_get_apkindex"
91 "test_package_from_aports"
93 "test_pmbootstrap_status"
94 "test_print_checks_git_repo"
97 "test_qemu_running_processes"
98 "test_questions_additional_options"
99 "test_questions_bootimg"
100 "test_questions_channel"
101 "test_questions_keymaps"
102 "test_questions_work_path"
103 "test_read_config_channel"
104 "test_recurse_invalid"
108 "test_skip_already_built"
109 "test_switch_to_channel_branch"
113 makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ git openssl ]}" ];
115 passthru.updateScript = gitUpdater { };
119 "Sophisticated chroot/build/flash tool to develop and install postmarketOS";
120 homepage = "https://gitlab.com/postmarketOS/pmbootstrap";
121 license = licenses.gpl3Plus;
122 maintainers = with maintainers; [ onny lucasew ];
123 mainProgram = "pmbootstrap";