31 lines
772 B
Nix
31 lines
772 B
Nix
{ stdenv, fetchFromGitHub, fetchpatch, pythonPackages }:
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
|
pname = "simp_le-client";
|
|
version = "0.1.1";
|
|
name = "${pname}-${version}";
|
|
|
|
src = pythonPackages.fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "18y8mg0s0i2bs57pi6mbkwgjlr5mmivchiyvrpcbdmkg9qlbfwaa";
|
|
};
|
|
|
|
prePatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace 'acme>=0.9,<0.10' acme
|
|
'';
|
|
|
|
checkPhase = ''
|
|
$out/bin/simp_le --test
|
|
'';
|
|
|
|
propagatedBuildInputs = with pythonPackages; [ acme setuptools_scm ];
|
|
|
|
meta = with stdenv.lib; {
|
|
inherit (src.meta) homepage;
|
|
description = "Simple Let's Encrypt client";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ gebner nckx ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|