3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/admin/simp_le/default.nix

32 lines
772 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, fetchpatch, pythonPackages }:
pythonPackages.buildPythonApplication rec {
2017-02-20 11:47:46 +00:00
pname = "simp_le-client";
version = "0.1.1";
name = "${pname}-${version}";
2017-02-20 11:47:46 +00:00
src = pythonPackages.fetchPypi {
inherit pname version;
sha256 = "18y8mg0s0i2bs57pi6mbkwgjlr5mmivchiyvrpcbdmkg9qlbfwaa";
};
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 ];
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;
};
}