2016-08-02 21:19:34 +02:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, pythonPackages }:
|
2015-12-05 08:43:56 +01:00
|
|
|
|
2016-02-19 13:12:11 +01:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2017-02-20 12:47:46 +01:00
|
|
|
pname = "simp_le-client";
|
|
|
|
version = "0.1.1";
|
|
|
|
name = "${pname}-${version}";
|
2015-12-05 08:43:56 +01:00
|
|
|
|
2017-02-20 12:47:46 +01:00
|
|
|
src = pythonPackages.fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "18y8mg0s0i2bs57pi6mbkwgjlr5mmivchiyvrpcbdmkg9qlbfwaa";
|
2015-12-05 08:43:56 +01:00
|
|
|
};
|
|
|
|
|
2017-02-20 12:47:46 +01: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 08:43:56 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-02-20 16:06:17 +01:00
|
|
|
homepage = "https://github.com/zenhack/simp_le";
|
2015-12-05 08:43:56 +01:00
|
|
|
description = "Simple Let's Encrypt client";
|
|
|
|
license = licenses.gpl3;
|
2016-01-15 01:28:52 +01:00
|
|
|
maintainers = with maintainers; [ gebner nckx ];
|
2015-12-05 08:43:56 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|