perlPackages.LWP: 6.49 -> 6.67

Moves test dependencies to `checkInputs` to avoid pulling in
HTTP::Daemon, which is now a test requirement, if we're cross compiling
as HTTP::Daemon doesn't build with perl-cross miniperl.
This commit is contained in:
Stig Palmquist 2022-07-22 13:18:26 +02:00
parent ad29dc19c1
commit a98d434e5e
No known key found for this signature in database
GPG Key ID: 6A0B75A8D9DCC005

View File

@ -13030,12 +13030,12 @@ let
LWP = buildPerlPackage {
pname = "libwww-perl";
version = "6.49";
version = "6.67";
src = fetchurl {
url = "mirror://cpan/authors/id/O/OA/OALDERS/libwww-perl-6.49.tar.gz";
sha256 = "19k0cg4j4qz005a4ngy48z4r8dc99dxlpq8kvj7qnk15mvgd1r63";
url = "mirror://cpan/authors/id/O/OA/OALDERS/libwww-perl-6.67.tar.gz";
sha256 = "sha256-lu7ECj/QqhvYNBF75eshxDj3MJTYYaGn5XdPCxImtyM=";
};
propagatedBuildInputs = [ FileListing HTMLParser HTTPCookies HTTPDaemon HTTPNegotiate NetHTTP TryTiny WWWRobotRules ];
propagatedBuildInputs = [ FileListing HTMLParser HTTPCookies HTTPNegotiate NetHTTP TryTiny WWWRobotRules ];
# support cross-compilation by avoiding using `has_module` which does not work in miniperl (it requires B native module)
postPatch = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
substituteInPlace Makefile.PL --replace 'if has_module' 'if 0; #'
@ -13045,7 +13045,7 @@ let
description = "The World-Wide Web library for Perl";
license = with licenses; [ artistic1 gpl1Plus ];
};
buildInputs = [ TestFatal TestNeeds TestRequiresInternet ];
checkInputs = [ HTTPDaemon TestFatal TestNeeds TestRequiresInternet ];
};
LWPAuthenOAuth = buildPerlPackage {