Unverified Commit 2504f520 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

exiv2: 0.28.5 -> 0.28.7 (#438993)

parents 2e5e423a 0960d502
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@

stdenv.mkDerivation rec {
  pname = "exiv2";
  version = "0.28.5";
  version = "0.28.7";

  outputs = [
    "out"
@@ -33,8 +33,8 @@ stdenv.mkDerivation rec {
  src = fetchFromGitHub {
    owner = "exiv2";
    repo = "exiv2";
    rev = "v${version}";
    hash = "sha256-+Fe0+wkWWtM3MNgY6qp34/kC8jkOjOLusnd9WquYpA8=";
    tag = "v${version}";
    hash = "sha256-a7nPjDjTcwsQeypARvy2rRsv9jpasSSxSyCTLWNDDtA=";
  };

  nativeBuildInputs = [
@@ -79,6 +79,10 @@ stdenv.mkDerivation rec {
  preCheck = ''
    patchShebangs ../test/
    mkdir ../test/tmp

    # template.exv_test (test_regression_allfiles.TestAllFiles.template.exv_test) ... ERROR
    substituteInPlace ../tests/regression_tests/test_regression_allfiles.py \
      --replace-fail '"issue_2403_poc.exv",' '"issue_2403_poc.exv", "template.exv",'
  ''
  + lib.optionalString stdenv.hostPlatform.isAarch32 ''
    # Fix tests on arm
@@ -91,7 +95,7 @@ stdenv.mkDerivation rec {

    # disable tests that requires loopback networking
    substituteInPlace ../tests/bash_tests/testcases.py \
      --replace "def io_test(self):" "def io_disabled(self):"
      --replace-fail "def io_test(self):" "def io_disabled(self):"
  '';

  preFixup = ''