pmbootstrap: move to by-name, add update script

Signed-off-by: lucasew <lucas59356@gmail.com>
This commit is contained in:
lucasew 2024-05-27 10:21:39 -03:00
parent 8ad2c84b8b
commit 3a3f6e1288
2 changed files with 22 additions and 6 deletions

View File

@ -1,9 +1,18 @@
{ stdenv, lib, git, openssl, buildPythonApplication, pytestCheckHook, ps
, fetchPypi, fetchFromGitLab, sudo }:
{ stdenv
, lib
, git
, openssl
, ps
, fetchFromGitLab
, sudo
, python3Packages
, gitUpdater
}:
buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "pmbootstrap";
version = "2.2.0";
pyproject = true;
src = fetchFromGitLab {
owner = "postmarketos";
@ -17,7 +26,14 @@ buildPythonApplication rec {
# Tests depend on sudo
doCheck = stdenv.isLinux;
nativeCheckInputs = [ pytestCheckHook git openssl ps sudo ];
nativeCheckInputs = [
python3Packages.pytestCheckHook
python3Packages.setuptools
git
openssl
ps
sudo
];
# Add test dependency in PATH
preCheck = "export PYTHONPATH=$PYTHONPATH:${pmb_test}";
@ -93,6 +109,8 @@ buildPythonApplication rec {
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ git openssl ]}" ];
passthru.updateScript = gitUpdater { };
meta = with lib; {
description =
"Sophisticated chroot/build/flash tool to develop and install postmarketOS";

View File

@ -31657,8 +31657,6 @@ with pkgs;
protonup-qt = python3Packages.callPackage ../applications/misc/protonup-qt { };
pmbootstrap = python3Packages.callPackage ../tools/misc/pmbootstrap { };
pokeget-rs = callPackage ../tools/misc/pokeget-rs { };
popura = callPackage ../tools/networking/popura { };