git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #93599 from stigtsp/package/perl-crypt-openpgp-init

perlPackages.CryptOpenPGP: init at 1.12

commit970b2b853d41ec80a3c2aba3e585f52818fbbfa3 authorAaron Andersen <aaron@fosslib.net> dateSun 26 Jul 2020, 18:55 (6 years ago) parent0bf86fbe68e4ca
2 files changed+237
pkgs/development/perl-modules/crypt-openpgp-remove-impure-keygen-tests.patch+30 pkgs/top-level/perl-packages.nix+207
pkgs/development/perl-modules/crypt-openpgp-remove-impure-keygen-tests.patchnew file+30
@@ -0,0 +1,30 @@
1+diff --git a/t/13-keygen.t b/t/13-keygen.t
2+index f430ffb..2050624 100644
3+--- a/t/13-keygen.t
4++++ b/t/13-keygen.t
5+@@ -1,5 +1,5 @@
6+ use strict;
7+-use Test::More tests => 29;
8++use Test::More tests => 25;
9+
10+ use Crypt::OpenPGP;
11+ use Crypt::OpenPGP::Message;
12+@@ -26,9 +26,6 @@ for my $type ( qw( RSA DSA ) ) {
13+ isa_ok $pub->key, 'Crypt::OpenPGP::Certificate';
14+ isa_ok $sec->key, 'Crypt::OpenPGP::Certificate';
15+
16+- is $pub->key->key_id, $sec->key->key_id,
17+- 'public key_id matches secret key_id';
18+-
19+ is $pub->primary_uid, $id, 'primary_uid matches';
20+
21+ is $pub->key->key->size, $bits, 'keysize (in bits) matches for pubkey';
22+@@ -47,8 +44,6 @@ for my $type ( qw( RSA DSA ) ) {
23+ isa_ok $pieces[1], 'Crypt::OpenPGP::UserID';
24+ isa_ok $pieces[2], 'Crypt::OpenPGP::Signature';
25+
26+- is $pieces[0]->key_id, $sec->key->key_id,
27+- 'serialized public key_id matches secret key_id';
28+ }
29+
30+ {
pkgs/top-level/perl-packages.nix+207
@@ -303,6 +303,22 @@ let
303303 };
304304 };
305305
306+ AltCryptRSABigInt = buildPerlPackage {
307+ pname = "Alt-Crypt-RSA-BigInt";
308+ version = "0.06";
309+ src = fetchurl {
310+ url = "mirror://cpan/authors/id/D/DA/DANAJ/Alt-Crypt-RSA-BigInt-0.06.tar.gz";
311+ sha256 = "76f434cab36999cdf09811345bb39d6b7cbed7e085b02338328c7f46e08b38f3";
312+ };
313+ propagatedBuildInputs = [ ClassLoader ConvertASCIIArmour CryptBlowfish CryptCBC DataBuffer DigestMD2 MathBigIntGMP MathPrimeUtil MathPrimeUtilGMP SortVersions TieEncryptedHash ];
314+ meta = {
315+ homepage = "https://github.com/danaj/Alt-Crypt-RSA-BigInt";
316+ description = "RSA public-key cryptosystem, using Math::BigInt";
317+ license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
318+ maintainers = [ maintainers.sgo ];
319+ };
320+ };
321+
306322 AnyEvent = buildPerlPackage {
307323 pname = "AnyEvent";
308324 version = "7.17";
@@ -3329,6 +3345,20 @@ let
33293345 };
33303346 };
33313347
3348+ ConvertASCIIArmour = buildPerlPackage {
3349+ pname = "Convert-ASCII-Armour";
3350+ version = "1.4";
3351+ src = fetchurl {
3352+ url = "mirror://cpan/authors/id/V/VI/VIPUL/Convert-ASCII-Armour-1.4.tar.gz";
3353+ sha256 = "97e8acb6eb2a2a91af7d6cf0d2dff6fa42aaf939fc7d6d1c6057a4f0df52c904";
3354+ };
3355+ meta = {
3356+ description = "Convert binary octets into ASCII armoured messages";
3357+ license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
3358+ maintainers = [ maintainers.sgo ];
3359+ };
3360+ };
3361+
33323362 ConvertASN1 = buildPerlPackage {
33333363 pname = "Convert-ASN1";
33343364 version = "0.27";
@@ -3640,6 +3670,20 @@ let
36403670 };
36413671 };
36423672
3673+ CryptCAST5_PP = buildPerlPackage {
3674+ pname = "Crypt-CAST5_PP";
3675+ version = "1.04";
3676+ src = fetchurl {
3677+ url = "mirror://cpan/authors/id/B/BO/BOBMATH/Crypt-CAST5_PP-1.04.tar.gz";
3678+ sha256 = "cba98a80403fb898a14c928f237f44816b4848641840ce2517363c2c071b5327";
3679+ };
3680+ meta = {
3681+ description = "CAST5 block cipher in pure Perl";
3682+ license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
3683+ maintainers = [ maintainers.sgo ];
3684+ };
3685+ };
3686+
36433687 CryptCBC = buildPerlPackage {
36443688 pname = "Crypt-CBC";
36453689 version = "2.33";
@@ -3677,6 +3721,21 @@ let
36773721 };
36783722 };
36793723
3724+ CryptDES_EDE3 = buildPerlPackage {
3725+ pname = "Crypt-DES_EDE3";
3726+ version = "0.01";
3727+ src = fetchurl {
3728+ url = "mirror://cpan/authors/id/B/BT/BTROTT/Crypt-DES_EDE3-0.01.tar.gz";
3729+ sha256 = "9cb2e04b625e9cc0833cd499f76fd12556583ececa782a9758a55e3f969748d6";
3730+ };
3731+ propagatedBuildInputs = [ CryptDES ];
3732+ meta = {
3733+ description = "Triple-DES EDE encryption/decryption";
3734+ license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
3735+ maintainers = [ maintainers.sgo ];
3736+ };
3737+ };
3738+
36803739 CryptDH = buildPerlPackage {
36813740 pname = "Crypt-DH";
36823741 version = "0.07";
@@ -3699,6 +3758,21 @@ let
36993758 NIX_CFLAGS_LINK = "-L${pkgs.gmp.out}/lib -lgmp";
37003759 };
37013760
3761+ CryptDSA = buildPerlPackage {
3762+ pname = "Crypt-DSA";
3763+ version = "1.17";
3764+ src = fetchurl {
3765+ url = "mirror://cpan/authors/id/A/AD/ADAMK/Crypt-DSA-1.17.tar.gz";
3766+ sha256 = "d1b8585f6bf746f76e5dc5da3641d325ed656bc2e5f344b54514b55c31009a03";
3767+ };
3768+ propagatedBuildInputs = [ DataBuffer DigestSHA1 FileWhich ];
3769+ meta = {
3770+ description = "DSA Signatures and Key Generation";
3771+ license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
3772+ maintainers = [ maintainers.sgo ];
3773+ };
3774+ };
3775+
37023776 CryptECB = buildPerlPackage {
37033777 pname = "Crypt-ECB";
37043778 version = "2.22";
@@ -3846,6 +3920,21 @@ let
38463920 };
38473921 };
38483922
3923+ CryptRIPEMD160 = buildPerlPackage {
3924+ pname = "Crypt-RIPEMD160";
3925+ version = "0.06";
3926+ src = fetchurl {
3927+ url = "mirror://cpan/authors/id/T/TO/TODDR/Crypt-RIPEMD160-0.06.tar.gz";
3928+ sha256 = "ea64a1e9eb42f3d79855a392e7cca6b86e8e0bcc9aabcc5efa5fa32415b67dba";
3929+ };
3930+ meta = {
3931+ homepage = "http://wiki.github.com/toddr/Crypt-RIPEMD160";
3932+ description = "Perl extension for the RIPEMD-160 Hash function";
3933+ license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
3934+ maintainers = [ maintainers.sgo ];
3935+ };
3936+ };
3937+
38493938 CryptMySQL = buildPerlModule {
38503939 pname = "Crypt-MySQL";
38513940 version = "0.04";
@@ -3915,6 +4004,47 @@ let
39154004 };
39164005 };
39174006
4007+ CryptTwofish = buildPerlPackage {
4008+ pname = "Crypt-Twofish";
4009+ version = "2.17";
4010+ src = fetchurl {
4011+ url = "mirror://cpan/authors/id/A/AM/AMS/Crypt-Twofish-2.17.tar.gz";
4012+ sha256 = "eed502012f0c63927a1a32e3154071cc81175d1992a893ec41f183b6e3e5d758";
4013+ };
4014+ meta = {
4015+ description = "The Twofish Encryption Algorithm";
4016+ license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
4017+ maintainers = [ maintainers.sgo ];
4018+ };
4019+ };
4020+
4021+ CryptOpenPGP = buildPerlPackage {
4022+ pname = "Crypt-OpenPGP";
4023+ version = "1.12";
4024+ src = fetchurl {
4025+ url = "mirror://cpan/authors/id/S/SR/SROMANOV/Crypt-OpenPGP-1.12.tar.gz";
4026+ sha256 = "e8a7ff2a993b76a69ad6dffdbe55755be5678b84e6ec494dcd9ab966f766f50e";
4027+ };
4028+ patches = [
4029+ # See https://github.com/NixOS/nixpkgs/pull/93599
4030+ ../development/perl-modules/crypt-openpgp-remove-impure-keygen-tests.patch
4031+ ];
4032+ buildInputs = [ TestException ];
4033+ propagatedBuildInputs = [ AltCryptRSABigInt CryptBlowfish CryptCAST5_PP CryptDES_EDE3 CryptDSA CryptIDEA CryptRIPEMD160 CryptRijndael CryptTwofish DataBuffer FileHomeDir LWP TermReadKey URI BytesRandomSecure ];
4034+
4035+ nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin shortenPerlShebang;
4036+ postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
4037+ shortenPerlShebang $out/bin/pgplet
4038+ '';
4039+
4040+ meta = {
4041+ homepage = "https://github.com/btrott/Crypt-OpenPGP";
4042+ description = "Pure-Perl OpenPGP implementation";
4043+ license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
4044+ maintainers = [ maintainers.sgo ];
4045+ };
4046+ };
4047+
39184048 CryptOpenSSLAES = buildPerlPackage {
39194049 pname = "Crypt-OpenSSL-AES";
39204050 version = "0.02";
@@ -5598,6 +5728,20 @@ let
55985728 };
55995729 };
56005730
5731+ DataBuffer = buildPerlPackage {
5732+ pname = "Data-Buffer";
5733+ version = "0.04";
5734+ src = fetchurl {
5735+ url = "mirror://cpan/authors/id/B/BT/BTROTT/Data-Buffer-0.04.tar.gz";
5736+ sha256 = "2b3d09b7bcf389fc116207b283bee250e348d44c9c63460bee67efab4dd21bb4";
5737+ };
5738+ meta = {
5739+ description = "Read/write buffer class";
5740+ license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
5741+ maintainers = [ maintainers.sgo ];
5742+ };
5743+ };
5744+
56015745 DBIxIntrospector = buildPerlPackage {
56025746 pname = "DBIx-Introspector";
56035747 version = "0.001005";
@@ -5806,6 +5950,20 @@ let
58065950 };
58075951 };
58085952
5953+ DigestMD2 = buildPerlPackage {
5954+ pname = "Digest-MD2";
5955+ version = "2.04";
5956+ src = fetchurl {
5957+ url = "mirror://cpan/authors/id/G/GA/GAAS/Digest-MD2-2.04.tar.gz";
5958+ sha256 = "d0aabf4834c20ac411bea427c4a308b59a5fcaa327679ef5294c1d68ab71eed3";
5959+ };
5960+ meta = {
5961+ description = "Perl interface to the MD2 Algorithm";
5962+ license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
5963+ maintainers = [ maintainers.sgo ];
5964+ };
5965+ };
5966+
58095967 DigestMD4 = buildPerlPackage {
58105968 pname = "Digest-MD4";
58115969 version = "1.9";
@@ -11663,6 +11821,40 @@ let
1166311821 buildInputs = [ DataFloat MathBigIntLite NumberFraction ];
1166411822 };
1166511823
11824+ MathPrimeUtil = buildPerlPackage {
11825+ pname = "Math-Prime-Util";
11826+ version = "0.73";
11827+ src = fetchurl {
11828+ url = "mirror://cpan/authors/id/D/DA/DANAJ/Math-Prime-Util-0.73.tar.gz";
11829+ sha256 = "4afa6dd8cdb97499bd4eca6925861812c29d9f5a0f1ac27ad9d2d9c9b5602894";
11830+ };
11831+ propagatedBuildInputs = [ MathPrimeUtilGMP ];
11832+ meta = {
11833+ homepage = "https://github.com/danaj/Math-Prime-Util";
11834+ description = "Utilities related to prime numbers, including fast sieves and factoring";
11835+ license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
11836+ maintainers = [ maintainers.sgo ];
11837+ };
11838+ };
11839+
11840+ MathPrimeUtilGMP = buildPerlPackage {
11841+ pname = "Math-Prime-Util-GMP";
11842+ version = "0.52";
11843+ src = fetchurl {
11844+ url = "mirror://cpan/authors/id/D/DA/DANAJ/Math-Prime-Util-GMP-0.52.tar.gz";
11845+ sha256 = "2697c7fd5c7e35fdec7f50ed56a67be807a2f22657589e637dad3592744003be";
11846+ };
11847+ buildInputs = [ pkgs.gmp ];
11848+ NIX_CFLAGS_COMPILE = "-I${pkgs.gmp.dev}/include";
11849+ NIX_CFLAGS_LINK = "-L${pkgs.gmp.out}/lib -lgmp";
11850+ meta = {
11851+ homepage = "https://github.com/danaj/Math-Prime-Util-GMP";
11852+ description = "Utilities related to prime numbers, using GMP";
11853+ license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
11854+ maintainers = [ maintainers.sgo ];
11855+ };
11856+ };
11857+
1166611858 MathRandom = buildPerlPackage {
1166711859 pname = "Math-Random";
1166811860 version = "0.72";
@@ -20574,6 +20766,21 @@ let
2057420766 };
2057520767 };
2057620768
20769+ TieEncryptedHash = buildPerlPackage {
20770+ pname = "Tie-EncryptedHash";
20771+ version = "1.24";
20772+ src = fetchurl {
20773+ url = "mirror://cpan/authors/id/V/VI/VIPUL/Tie-EncryptedHash-1.24.tar.gz";
20774+ sha256 = "aa9a083a231e4046170a5894644e3c59679c7dbd0aa2d1217dc85150df2c1e21";
20775+ };
20776+ propagatedBuildInputs = [ CryptBlowfish CryptCBC CryptDES ];
20777+ meta = {
20778+ description = "Hashes (and objects based on hashes) with encrypting fields";
20779+ license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
20780+ maintainers = [ maintainers.sgo ];
20781+ };
20782+ };
20783+
2057720784 TieFile = buildPerlPackage {
2057820785 pname = "Tie-File";
2057920786 version = "1.05";