2016-08-02 20:19:34 +01:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, pythonPackages }:
|
2015-12-05 07:43:56 +00:00
|
|
|
|
2016-02-19 12:12:11 +00:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2017-02-20 11:47:46 +00:00
|
|
|
pname = "simp_le-client";
|
|
|
|
version = "0.1.1";
|
|
|
|
name = "${pname}-${version}";
|
2015-12-05 07:43:56 +00:00
|
|
|
|
2017-02-20 11:47:46 +00:00
|
|
|
src = pythonPackages.fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "18y8mg0s0i2bs57pi6mbkwgjlr5mmivchiyvrpcbdmkg9qlbfwaa";
|
2015-12-05 07:43:56 +00:00
|
|
|
};
|
|
|
|
|
2017-02-20 11:47:46 +00:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace 'acme>=0.9,<0.10' acme
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
$out/bin/simp_le --test
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = with pythonPackages; [ acme setuptools_scm ];
|
2015-12-05 07:43:56 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-01-15 00:28:52 +00:00
|
|
|
inherit (src.meta) homepage;
|
2015-12-05 07:43:56 +00:00
|
|
|
description = "Simple Let's Encrypt client";
|
|
|
|
license = licenses.gpl3;
|
2016-01-15 00:28:52 +00:00
|
|
|
maintainers = with maintainers; [ gebner nckx ];
|
2015-12-05 07:43:56 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|