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

certbot: fixup build by upstream patch

parent 79663cf1
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
  python,
  runCommand,
  fetchFromGitHub,
  fetchpatch,
  configargparse,
  acme,
  configobj,
@@ -33,7 +34,16 @@ buildPythonPackage rec {
    hash = "sha256-Qee7lUjgliG5fmUWWPm3MzpGJHUF/DXZ08UA6kkWjjk=";
  };

  sourceRoot = "${src.name}/${pname}";
  patches = [
    (fetchpatch {
      name = "CSR_support_in_pyOpenSSL_is_deprecated.patch";
      url = "https://github.com/certbot/certbot/commit/f005045d87b25f1922774685646e57765aa202ad.patch";
      includes = [ "pytest.ini" ];
      hash = "sha256-YcQbZb7DLU+AXxNyqJRYZIC18DuT6X8kGbfdYtUrHiA=";
    })
  ];

  postPatch = "cd ${pname}";  # using sourceRoot would interfere with patches

  nativeBuildInputs = [ setuptools ];