1{
2 fetchFromGitHub,
3 gitUpdater,
4 lib,
5 python3,
6}:
7
8python3.pkgs.buildPythonApplication rec {
9 pname = "ubi_reader";
10 version = "0.8.10";
11 pyproject = true;
12 disabled = python3.pkgs.pythonOlder "3.9";
13
14 src = fetchFromGitHub {
15 owner = "onekey-sec";
16 repo = "ubi_reader";
17 rev = "v${version}";
18 hash = "sha256-fXJiQZ1QWUmkRM+WI8DSIsay9s1w3hKloRuCcUNwZjM=";
19 };
20
21 build-system = [ python3.pkgs.poetry-core ];
22
23 dependencies = [ python3.pkgs.lzallright ];
24
25 # There are no tests in the source
26 doCheck = false;
27
28 passthru = {
29 updateScript = gitUpdater {
30 rev-prefix = "v";
31 ignoredVersions = "_[a-z]+$";
32 };
33 };
34
35 meta = {
36 description = "Python scripts capable of extracting and analyzing the contents of UBI and UBIFS images";
37 homepage = "https://github.com/onekey-sec/ubi_reader";
38 license = lib.licenses.gpl3Only;
39 maintainers = with lib.maintainers; [ vlaci ];
40 };
41}