summary refs log tree commit diff
path: root/pkgs/top-level
diff options
context:
space:
mode:
authorStig Palmquist <stig@stig.io>2020-07-06 15:41:50 +0200
committerStig Palmquist <stig@stig.io>2020-07-06 15:41:50 +0200
commit19f7be374bfb77ad792eef68d750a42e3af3a3d8 (patch)
tree5c3994008d8b70e5455b35ee865f648dac25dcfa /pkgs/top-level
parent3c1b3a08e6305a22121489d8e4bc89d13381f3f6 (diff)
downloadnixpkgs-19f7be374bfb77ad792eef68d750a42e3af3a3d8.tar
nixpkgs-19f7be374bfb77ad792eef68d750a42e3af3a3d8.tar.gz
nixpkgs-19f7be374bfb77ad792eef68d750a42e3af3a3d8.tar.bz2
nixpkgs-19f7be374bfb77ad792eef68d750a42e3af3a3d8.tar.lz
nixpkgs-19f7be374bfb77ad792eef68d750a42e3af3a3d8.tar.xz
nixpkgs-19f7be374bfb77ad792eef68d750a42e3af3a3d8.tar.zst
nixpkgs-19f7be374bfb77ad792eef68d750a42e3af3a3d8.zip
perlPackages.MetaCPANClient: init at 2.026000
Diffstat (limited to 'pkgs/top-level')
-rw-r--r--pkgs/top-level/perl-packages.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix
index 6520ee88a61..646d5ca0777 100644
--- a/pkgs/top-level/perl-packages.nix
+++ b/pkgs/top-level/perl-packages.nix
@@ -11685,6 +11685,31 @@ let
     };
   };
 
+  MetaCPANClient = buildPerlPackage {
+    pname = "MetaCPAN-Client";
+    version = "2.026000";
+    src = fetchurl {
+      url = "mirror://cpan/authors/id/M/MI/MICKEY/MetaCPAN-Client-2.026000.tar.gz";
+      sha256 = "ee711619d59655dac1bd2e4b894ffeb3171bd73b1ed38ba4b7b07d3690f94465";
+    };
+
+    # Most tests are online, so we only include offline tests
+    postPatch = ''
+      substituteInPlace Makefile.PL \
+         --replace '"t/*.t t/api/*.t"' \
+        '"t/00-report-prereqs.t t/api/_get.t t/api/_get_or_search.t t/api/_search.t t/entity.t t/request.t t/resultset.t"'
+    '';
+
+    buildInputs = [ LWPProtocolhttps TestFatal TestNeeds ];
+    propagatedBuildInputs = [ IOSocketSSL JSONMaybeXS Moo NetSSLeay RefUtil SafeIsa TypeTiny URI ];
+    meta = {
+      homepage = "https://github.com/metacpan/metacpan-client";
+      description = "A comprehensive, DWIM-featured client to the MetaCPAN API";
+      license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
+      maintainers = with maintainers; [ sgo ];
+    };
+  };
+
   MethodSignaturesSimple = buildPerlPackage {
     pname = "Method-Signatures-Simple";
     version = "1.07";