certbot: move to python package set, cleanup
This commit is contained in:
parent
391a5fdc5b
commit
8ad62167e8
@ -1,12 +1,12 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonApplication
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, ConfigArgParse, acme, configobj, cryptography, distro, josepy, parsedatetime, pyRFC3339, pyopenssl, pytz, requests, six, zope_component, zope_interface
|
, ConfigArgParse, acme, configobj, cryptography, distro, josepy, parsedatetime, pyRFC3339, pyopenssl, pytz, requests, six, zope_component, zope_interface
|
||||||
, dialog, mock, gnureadline
|
, dialog, mock, gnureadline
|
||||||
, pytest_xdist, pytest, dateutil
|
, pytest_xdist, pytest, pytestCheckHook, dateutil
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonPackage rec {
|
||||||
pname = "certbot";
|
pname = "certbot";
|
||||||
version = "1.6.0";
|
version = "1.6.0";
|
||||||
|
|
||||||
@ -17,6 +17,8 @@ buildPythonApplication rec {
|
|||||||
sha256 = "1y0m5qm853i6pcpb2mrf8kjkr9wr80mdrx1qmck38ayvr2v2p5lc";
|
sha256 = "1y0m5qm853i6pcpb2mrf8kjkr9wr80mdrx1qmck38ayvr2v2p5lc";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sourceRoot = "source/${pname}";
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
ConfigArgParse
|
ConfigArgParse
|
||||||
acme
|
acme
|
||||||
@ -36,21 +38,19 @@ buildPythonApplication rec {
|
|||||||
|
|
||||||
buildInputs = [ dialog mock gnureadline ];
|
buildInputs = [ dialog mock gnureadline ];
|
||||||
|
|
||||||
checkInputs = [ pytest_xdist pytest dateutil ];
|
checkInputs = [
|
||||||
|
dateutil
|
||||||
|
pytest
|
||||||
|
pytestCheckHook
|
||||||
|
pytest_xdist
|
||||||
|
];
|
||||||
|
|
||||||
preBuild = ''
|
pytestFlagsArray = [ "-o cache_dir=$(mktemp -d)" ];
|
||||||
cd certbot
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = ''
|
|
||||||
for i in $out/bin/*; do
|
|
||||||
wrapProgram "$i" --prefix PYTHONPATH : "$PYTHONPATH" \
|
|
||||||
--prefix PATH : "${dialog}/bin:$PATH"
|
|
||||||
done
|
|
||||||
'';
|
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
|
makeWrapperArgs = [ "--prefix PATH : ${dialog}/bin" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = src.meta.homepage;
|
homepage = src.meta.homepage;
|
||||||
description = "ACME client that can obtain certs and extensibly update server configurations";
|
description = "ACME client that can obtain certs and extensibly update server configurations";
|
@ -11592,7 +11592,7 @@ in
|
|||||||
ogre = ogre1_10;
|
ogre = ogre1_10;
|
||||||
};
|
};
|
||||||
|
|
||||||
certbot = python3Packages.callPackage ../tools/admin/certbot { };
|
certbot = python3.pkgs.toPythonApplication python3.pkgs.certbot;
|
||||||
|
|
||||||
caf = callPackage ../development/libraries/caf {};
|
caf = callPackage ../development/libraries/caf {};
|
||||||
|
|
||||||
|
@ -585,6 +585,8 @@ in {
|
|||||||
|
|
||||||
cdecimal = callPackage ../development/python-modules/cdecimal { };
|
cdecimal = callPackage ../development/python-modules/cdecimal { };
|
||||||
|
|
||||||
|
certbot = callPackage ../development/python-modules/certbot { };
|
||||||
|
|
||||||
certbot-dns-cloudflare = callPackage ../development/python-modules/certbot-dns-cloudflare { };
|
certbot-dns-cloudflare = callPackage ../development/python-modules/certbot-dns-cloudflare { };
|
||||||
|
|
||||||
certbot-dns-rfc2136 = callPackage ../development/python-modules/certbot-dns-rfc2136 { };
|
certbot-dns-rfc2136 = callPackage ../development/python-modules/certbot-dns-rfc2136 { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user