simp_le: use python3Packages (#44476)

This commit is contained in:
Robert Schütz 2018-08-05 01:17:38 +02:00 committed by GitHub
parent 544f1d471a
commit 2215834789
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View file

@ -12,7 +12,9 @@ let
'';
});
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 "") + ''

View file

@ -1,10 +1,10 @@
{ 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";
};
@ -22,7 +22,7 @@ pythonPackages.buildPythonApplication rec {
$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;