certbot: pin josepy to version 1.15.0
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
{
|
||||
fetchFromGitHub,
|
||||
python3,
|
||||
}:
|
||||
|
||||
let
|
||||
python = python3.override {
|
||||
self = python;
|
||||
packageOverrides = self: super: {
|
||||
josepy = super.josepy.overridePythonAttrs (old: rec {
|
||||
version = "1.15.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "certbot";
|
||||
repo = "josepy";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-fK4JHDP9eKZf2WO+CqRdEjGwJg/WNLvoxiVrb5xQxRc=";
|
||||
};
|
||||
dependencies = with self; [
|
||||
pyopenssl
|
||||
cryptography
|
||||
];
|
||||
});
|
||||
};
|
||||
};
|
||||
in
|
||||
with python.pkgs;
|
||||
toPythonApplication certbot
|
||||
@@ -33,7 +33,7 @@ buildPythonPackage rec {
|
||||
hash = "sha256-lYGJgUNDzX+bE64GJ+djdKR+DXmhpcNbFJrAEnP86yQ=";
|
||||
};
|
||||
|
||||
postPatch = "cd ${pname}"; # using sourceRoot would interfere with patches
|
||||
postPatch = "cd certbot"; # using sourceRoot would interfere with patches
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
@@ -84,6 +84,8 @@ buildPythonPackage rec {
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
# AttributeError: module 'josepy' has no attribute 'ComparableX509'
|
||||
broken = lib.versionAtLeast josepy.version "2";
|
||||
homepage = "https://github.com/certbot/certbot";
|
||||
changelog = "https://github.com/certbot/certbot/blob/${src.tag}/certbot/CHANGELOG.md";
|
||||
description = "ACME client that can obtain certs and extensibly update server configurations";
|
||||
|
||||
@@ -8551,8 +8551,6 @@ with pkgs;
|
||||
celt_0_7 = callPackage ../development/libraries/celt/0.7.nix { };
|
||||
celt_0_5_1 = callPackage ../development/libraries/celt/0.5.1.nix { };
|
||||
|
||||
certbot = python3.pkgs.toPythonApplication python3.pkgs.certbot;
|
||||
|
||||
certbot-full = certbot.withPlugins (cp: with cp; [
|
||||
certbot-dns-cloudflare
|
||||
certbot-dns-google
|
||||
|
||||
Reference in New Issue
Block a user