Unverified Commit add68064 authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

certbot: pull an upstream patch to fix test

This was caused by a python's patch-level bump.
It broke the build:
https://hydra.nixos.org/build/321554779/nixlog/5/tail
parent 87b82df7
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
  python,
  runCommand,
  fetchFromGitHub,
  fetchpatch,
  configargparse,
  acme,
  configobj,
@@ -34,6 +35,14 @@ buildPythonPackage rec {
    hash = "sha256-+LQX845Qw/T+kR846bNu9xTJ0zcL76rtp48e/Cgu6Vk=";
  };

  patches = [
    (fetchpatch {
      name = "fix-test_rollback_too_many.patch";
      url = "https://github.com/certbot/certbot/commit/4c61a450d4a843c66baab6d5d9a42ce0554e99d7.patch";
      hash = "sha256-PSh2JXoEWNUrqxNh8X5QchyIP8KRHT60T/cLax6VRWo=";
    })
  ];

  postPatch = "cd certbot"; # using sourceRoot would interfere with patches

  build-system = [ setuptools ];