13 python3Packages.buildPythonApplication rec {
14 pname = "pmbootstrap";
18 src = fetchFromGitLab {
19 owner = "postmarketOS";
22 hash = "sha256-hUrWMU4V7tf/qVR4geR5FsCQ+BZA+zCPTdCZGN1PMKk=";
23 domain = "gitlab.postmarketos.org";
26 pmb_test = "${src}/test";
28 # Tests depend on sudo
29 doCheck = stdenv.hostPlatform.isLinux;
32 python3Packages.setuptools
36 python3Packages.pytestCheckHook
43 # Add test dependency in PATH
44 preCheck = "export PYTHONPATH=$PYTHONPATH:${pmb_test}";
50 "test_aportgen_device_wizard"
52 "test_build_abuild_leftovers"
53 "test_build_depends_binary_outdated"
54 "test_build_depends_high_level"
55 "test_build_depends_no_binary_error"
56 "test_build_is_necessary"
57 "test_build_local_source_high_level"
58 "test_build_src_invalid_path"
60 "test_can_fast_forward"
61 "test_check_build_for_arch"
63 "test_chroot_arguments"
64 "test_chroot_interactive_shell"
65 "test_chroot_interactive_shell_user"
69 "test_cross_compile_distcc"
72 "test_extract_version"
74 "test_filter_aport_packages"
75 "test_filter_missing_packages_binary_exists"
76 "test_filter_missing_packages_invalid"
77 "test_filter_missing_packages_pmaports"
80 "test_get_all_component_names"
83 "test_get_upstream_remote"
85 "test_helpers_package_get_apkindex"
93 "test_package_from_aports"
94 "test_pkgrepo_pmaports"
96 "test_pmbootstrap_status"
97 "test_print_checks_git_repo"
100 "test_qemu_running_processes"
101 "test_questions_additional_options"
102 "test_questions_bootimg"
103 "test_questions_channel"
104 "test_questions_keymaps"
105 "test_questions_work_path"
106 "test_read_config_channel"
107 "test_recurse_invalid"
111 "test_skip_already_built"
112 "test_switch_to_channel_branch"
116 makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ git openssl multipath-tools ]}" ];
118 passthru.updateScript = gitUpdater { };
122 "Sophisticated chroot/build/flash tool to develop and install postmarketOS";
123 homepage = "https://gitlab.com/postmarketOS/pmbootstrap";
124 license = licenses.gpl3Plus;
125 maintainers = with maintainers; [ onny lucasew ];
126 mainProgram = "pmbootstrap";