lol

Merge pull request #93599 from stigtsp/package/perl-crypt-openpgp-init

perlPackages.CryptOpenPGP: init at 1.12

authored by

Aaron Andersen and committed by
GitHub
970b2b85 0bf86fb4

+237
+30
pkgs/development/perl-modules/crypt-openpgp-remove-impure-keygen-tests.patch
··· 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 + {
+207
pkgs/top-level/perl-packages.nix
··· 303 303 }; 304 304 }; 305 305 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 + 306 322 AnyEvent = buildPerlPackage { 307 323 pname = "AnyEvent"; 308 324 version = "7.17"; ··· 3329 3345 }; 3330 3346 }; 3331 3347 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 + 3332 3362 ConvertASN1 = buildPerlPackage { 3333 3363 pname = "Convert-ASN1"; 3334 3364 version = "0.27"; ··· 3640 3670 }; 3641 3671 }; 3642 3672 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 + 3643 3687 CryptCBC = buildPerlPackage { 3644 3688 pname = "Crypt-CBC"; 3645 3689 version = "2.33"; ··· 3677 3721 }; 3678 3722 }; 3679 3723 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 + 3680 3739 CryptDH = buildPerlPackage { 3681 3740 pname = "Crypt-DH"; 3682 3741 version = "0.07"; ··· 3699 3758 NIX_CFLAGS_LINK = "-L${pkgs.gmp.out}/lib -lgmp"; 3700 3759 }; 3701 3760 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 + 3702 3776 CryptECB = buildPerlPackage { 3703 3777 pname = "Crypt-ECB"; 3704 3778 version = "2.22"; ··· 3846 3920 }; 3847 3921 }; 3848 3922 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 + 3849 3938 CryptMySQL = buildPerlModule { 3850 3939 pname = "Crypt-MySQL"; 3851 3940 version = "0.04"; ··· 3915 4004 }; 3916 4005 }; 3917 4006 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 + 3918 4048 CryptOpenSSLAES = buildPerlPackage { 3919 4049 pname = "Crypt-OpenSSL-AES"; 3920 4050 version = "0.02"; ··· 5598 5728 }; 5599 5729 }; 5600 5730 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 + 5601 5745 DBIxIntrospector = buildPerlPackage { 5602 5746 pname = "DBIx-Introspector"; 5603 5747 version = "0.001005"; ··· 5803 5947 meta = { 5804 5948 description = "Perl extension for 32 bit Jenkins Hashing Algorithm"; 5805 5949 license = stdenv.lib.licenses.artistic2; 5950 + }; 5951 + }; 5952 + 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 ]; 5806 5964 }; 5807 5965 }; 5808 5966 ··· 11661 11819 }; 11662 11820 propagatedBuildInputs = [ MathLibm constant-defer ]; 11663 11821 buildInputs = [ DataFloat MathBigIntLite NumberFraction ]; 11822 + }; 11823 + 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 + }; 11664 11856 }; 11665 11857 11666 11858 MathRandom = buildPerlPackage { ··· 20571 20763 meta = { 20572 20764 description = "Cycle through a list of values via a scalar"; 20573 20765 license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ]; 20766 + }; 20767 + }; 20768 + 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 ]; 20574 20781 }; 20575 20782 }; 20576 20783