3
0
Fork 0
forked from mirrors/nixpkgs

perl.Finance::Quote 1.19 (close #1759)

This restores access to Yahoo. It is not available on CPAN yet, so the
download refers to Sourceforge directly.
This commit is contained in:
Aristid Breitkreuz 2014-02-16 14:34:39 +01:00 committed by Vladimír Čunát
parent c7eb4982f3
commit 4fab99a195
2 changed files with 4 additions and 17 deletions

View file

@ -1,12 +0,0 @@
diff -ru Finance-Quote-1.18-orig/lib/Finance/Quote/Yahoo/USA.pm Finance-Quote-1.18/lib/Finance/Quote/Yahoo/USA.pm
--- Finance-Quote-1.18-orig/lib/Finance/Quote/Yahoo/USA.pm 2012-09-30 13:37:20.000000000 +0000
+++ Finance-Quote-1.18/lib/Finance/Quote/Yahoo/USA.pm 2014-02-13 22:02:53.538698928 +0000
@@ -41,7 +41,7 @@
# URLs of where to obtain information.
-$YAHOO_URL = ("http://finance.yahoo.com/d");
+$YAHOO_URL = ("http://finance.yahoo.com/d/quotes.csv");
sub methods {return (canada => \&yahoo,
usa => \&yahoo,

View file

@ -3552,13 +3552,12 @@ let self = _self // overrides; _self = with self; {
};
FinanceQuote = buildPerlPackage {
name = "Finance-Quote-1.18";
name = "Finance-Quote-1.19";
src = fetchurl {
url = mirror://cpan/authors/id/E/EC/ECOCODE/Finance-Quote-1.18.tar.gz;
sha256 = "4240faabe0646defd4ec76ca9e111977b9e8060eaec41adeb284eb422a428393";
url = mirror://sourceforge/finance-quote/1.19/Finance-Quote-1.19.tar.gz;
sha256 = "0z1dqxw4by7rkwm113qp2mlhl5r0znr22kzinvr1p82svn0zvm2d";
};
propagatedBuildInputs = [ CryptSSLeay HTMLTableExtract HTMLTree HTTPMessage LWP ];
patches = [ ../development/perl-modules/finance-quote-yahoo.patch ];
propagatedBuildInputs = [ CryptSSLeay HTMLTableExtract HTMLTree HTTPMessage LWP DateCalc JSON ];
meta = {
homepage = http://finance-quote.sourceforge.net/;
description = "Get stock and mutual fund quotes from various exchanges";