Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
931 B
Nix
42 lines
931 B
Nix
{
|
|
fetchFromGitHub,
|
|
gitUpdater,
|
|
lib,
|
|
python3,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "ubi_reader";
|
|
version = "0.8.10";
|
|
pyproject = true;
|
|
disabled = python3.pkgs.pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "onekey-sec";
|
|
repo = "ubi_reader";
|
|
rev = "v${version}";
|
|
hash = "sha256-fXJiQZ1QWUmkRM+WI8DSIsay9s1w3hKloRuCcUNwZjM=";
|
|
};
|
|
|
|
build-system = [ python3.pkgs.poetry-core ];
|
|
|
|
dependencies = [ python3.pkgs.lzallright ];
|
|
|
|
# There are no tests in the source
|
|
doCheck = false;
|
|
|
|
passthru = {
|
|
updateScript = gitUpdater {
|
|
rev-prefix = "v";
|
|
ignoredVersions = "_[a-z]+$";
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "Python scripts capable of extracting and analyzing the contents of UBI and UBIFS images";
|
|
homepage = "https://github.com/onekey-sec/ubi_reader";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ vlaci ];
|
|
};
|
|
}
|