Unverified Commit 293c7725 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

ubi_reader: 0.8.9 -> 0.8.10 (#381211)

parents b5dd9efc 686715f5
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
{
  fetchFromGitHub,
  gitUpdater,
  lib,
  python3,
}:

python3.pkgs.buildPythonApplication rec {
  pname = "ubi_reader";
  version = "0.8.9";
  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-04HwzkonPzzWfX8VE//fMoVv5ggAS+61zx2W8VEUIy4=";
    hash = "sha256-fXJiQZ1QWUmkRM+WI8DSIsay9s1w3hKloRuCcUNwZjM=";
  };

  build-system = [ python3.pkgs.poetry-core ];
@@ -23,6 +25,13 @@ python3.pkgs.buildPythonApplication rec {
  # 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";
+19 −6
Original line number Diff line number Diff line
@@ -106,11 +106,24 @@ python3.pkgs.buildPythonApplication rec {

  versionCheckProgramArg = "--version";

  pytestFlagsArray = [
    "--no-cov"
  pytestFlagsArray =
    let
      # `disabledTests` swallows the parameters between square brackets
      disabled = [
        # https://github.com/tytso/e2fsprogs/issues/152
    "-k 'not test_all_handlers[filesystem.extfs]'"
        "test_all_handlers[filesystem.extfs]"

        # Should be dropped after upgrading to next version
        # Needs https://github.com/onekey-sec/unblob/pull/1128/commits/c6af67f0c6f32fa01d7abbf495eb0293e9184438
        # Unfortunately patches touching LFS stored assets cannot be applied
        "test_all_handlers[filesystem.ubi.ubi]"
        "test_all_handlers[archive.dlink.encrpted_img]"
        "test_all_handlers[archive.dlink.shrs]"
      ];
    in
    [
      "--no-cov"
      "-k 'not ${lib.concatStringsSep " and not " disabled}'"
    ];

  passthru = {