ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / pm / pmbootstrap / package.nix
blob1263a698840610cbc63aa94ea9a31afdcdb9283f
1 { stdenv
2 , lib
3 , git
4 , multipath-tools
5 , openssl
6 , ps
7 , fetchFromGitLab
8 , sudo
9 , python3Packages
10 , gitUpdater
13 python3Packages.buildPythonApplication rec {
14   pname = "pmbootstrap";
15   version = "3.0.0";
16   pyproject = true;
18   src = fetchFromGitLab {
19     owner = "postmarketOS";
20     repo = pname;
21     rev = version;
22     hash = "sha256-hUrWMU4V7tf/qVR4geR5FsCQ+BZA+zCPTdCZGN1PMKk=";
23     domain = "gitlab.postmarketos.org";
24   };
26   pmb_test = "${src}/test";
28   # Tests depend on sudo
29   doCheck = stdenv.hostPlatform.isLinux;
31   build-system = [
32     python3Packages.setuptools
33   ];
35   nativeCheckInputs = [
36     python3Packages.pytestCheckHook
37     git
38     openssl
39     ps
40     sudo
41   ];
43   # Add test dependency in PATH
44   preCheck = "export PYTHONPATH=$PYTHONPATH:${pmb_test}";
46   # skip impure tests
47   disabledTests = [
48     "test_apk_static"
49     "test_aportgen"
50     "test_aportgen_device_wizard"
51     "test_bootimg"
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"
59     "test_check"
60     "test_can_fast_forward"
61     "test_check_build_for_arch"
62     "test_check_config"
63     "test_chroot_arguments"
64     "test_chroot_interactive_shell"
65     "test_chroot_interactive_shell_user"
66     "test_chroot_mount"
67     "test_clean_worktree"
68     "test_config_user"
69     "test_cross_compile_distcc"
70     "test_crossdirect"
71     "test_extract_arch"
72     "test_extract_version"
73     "test_file"
74     "test_filter_aport_packages"
75     "test_filter_missing_packages_binary_exists"
76     "test_filter_missing_packages_invalid"
77     "test_filter_missing_packages_pmaports"
78     "test_finish"
79     "test_folder_size"
80     "test_get_all_component_names"
81     "test_get_apkbuild"
82     "test_get_depends"
83     "test_get_upstream_remote"
84     "test_helpers_lint"
85     "test_helpers_package_get_apkindex"
86     "test_helpers_repo"
87     "test_helpers_ui"
88     "test_init_buildenv"
89     "test_kconfig_check"
90     "test_keys"
91     "test_newapkbuild"
92     "test_package"
93     "test_package_from_aports"
94     "test_pkgrepo_pmaports"
95     "test_pkgrel_bump"
96     "test_pmbootstrap_status"
97     "test_print_checks_git_repo"
98     "test_proxy"
99     "test_pull"
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"
108     "test_run_abuild"
109     "test_run_core"
110     "test_shell_escape"
111     "test_skip_already_built"
112     "test_switch_to_channel_branch"
113     "test_version"
114   ];
116   makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ git openssl multipath-tools ]}" ];
118   passthru.updateScript = gitUpdater { };
120   meta = with lib; {
121     description =
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";
127   };