pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / by-name / pm / pmbootstrap / package.nix
blobcee9a0b13b7e559fa37d66aa85063bacbe8a2ef6
1 { stdenv
2 , lib
3 , git
4 , openssl
5 , ps
6 , fetchFromGitLab
7 , sudo
8 , python3Packages
9 , gitUpdater
12 python3Packages.buildPythonApplication rec {
13   pname = "pmbootstrap";
14   version = "2.3.1";
15   pyproject = true;
17   src = fetchFromGitLab {
18     owner = "postmarketos";
19     repo = pname;
20     rev = version;
21     hash = "sha256-0hC84Gyfr1FOpZGAc7pAhz/QBSTA5A/Lu/ZJdzlEcX4=";
22   };
24   pmb_test = "${src}/test";
26   # Tests depend on sudo
27   doCheck = stdenv.hostPlatform.isLinux;
29   build-system = [
30     python3Packages.setuptools
31   ];
33   nativeCheckInputs = [
34     python3Packages.pytestCheckHook
35     git
36     openssl
37     ps
38     sudo
39   ];
41   # Add test dependency in PATH
42   preCheck = "export PYTHONPATH=$PYTHONPATH:${pmb_test}";
44   # skip impure tests
45   disabledTests = [
46     "test_apk_static"
47     "test_aportgen"
48     "test_aportgen_device_wizard"
49     "test_bootimg"
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"
57     "test_check"
58     "test_can_fast_forward"
59     "test_check_build_for_arch"
60     "test_check_config"
61     "test_chroot_arguments"
62     "test_chroot_interactive_shell"
63     "test_chroot_interactive_shell_user"
64     "test_chroot_mount"
65     "test_clean_worktree"
66     "test_config_user"
67     "test_cross_compile_distcc"
68     "test_crossdirect"
69     "test_extract_arch"
70     "test_extract_version"
71     "test_file"
72     "test_filter_aport_packages"
73     "test_filter_missing_packages_binary_exists"
74     "test_filter_missing_packages_invalid"
75     "test_filter_missing_packages_pmaports"
76     "test_finish"
77     "test_folder_size"
78     "test_get_all_component_names"
79     "test_get_apkbuild"
80     "test_get_depends"
81     "test_get_upstream_remote"
82     "test_helpers_lint"
83     "test_helpers_package_get_apkindex"
84     "test_helpers_repo"
85     "test_helpers_ui"
86     "test_init_buildenv"
87     "test_kconfig_check"
88     "test_keys"
89     "test_newapkbuild"
90     "test_package"
91     "test_package_from_aports"
92     "test_pkgrel_bump"
93     "test_pmbootstrap_status"
94     "test_print_checks_git_repo"
95     "test_proxy"
96     "test_pull"
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"
105     "test_run_abuild"
106     "test_run_core"
107     "test_shell_escape"
108     "test_skip_already_built"
109     "test_switch_to_channel_branch"
110     "test_version"
111   ];
113   makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ git openssl ]}" ];
115   passthru.updateScript = gitUpdater { };
117   meta = with lib; {
118     description =
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";
124   };