simp_le: use python3Packages (#44476)

Changed files
+7 -5
nixos
tests
pkgs
tools
admin
simp_le
+3 -1
nixos/tests/acme.nix
···
'';
});
-
pythonPackages = (super.python.override {
+
# Override certifi so that it accepts fake certificate for Let's Encrypt
+
# Need to override the attribute used by simp_le, which is python3Packages
+
python3Packages = (super.python3.override {
packageOverrides = lib.const (pysuper: {
certifi = pysuper.certifi.overridePythonAttrs (attrs: {
postPatch = (attrs.postPatch or "") + ''
+4 -4
pkgs/tools/admin/simp_le/default.nix
···
-
{ stdenv, pythonPackages, bash }:
+
{ stdenv, python3Packages, bash }:
-
pythonPackages.buildPythonApplication rec {
+
python3Packages.buildPythonApplication rec {
pname = "simp_le-client";
version = "0.9.0";
-
src = pythonPackages.fetchPypi {
+
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "1yxfznd78zkg2f657v520zj5w4dvq5n594d0kpm4lra8xnpg4zcv";
};
···
$out/bin/simp_le --test
'';
-
propagatedBuildInputs = with pythonPackages; [ acme setuptools_scm josepy idna ];
+
propagatedBuildInputs = with python3Packages; [ acme setuptools_scm josepy idna ];
meta = with stdenv.lib; {
homepage = https://github.com/zenhack/simp_le;