forked from mirrors/nixpkgs
40 lines
781 B
Nix
40 lines
781 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, multitasking
|
|
, numpy
|
|
, pandas
|
|
, requests
|
|
, lxml
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yfinance";
|
|
version = "0.1.70";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ranaroussi";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-Anvt+ag0PysGynQv4q+2IrQmCPZViGqWI4dgfLQWGds=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
multitasking
|
|
numpy
|
|
pandas
|
|
requests
|
|
lxml
|
|
];
|
|
|
|
doCheck = false; # Tests require internet access
|
|
pythonImportsCheck = [ "yfinance" ];
|
|
|
|
meta = with lib; {
|
|
description = "Yahoo! Finance market data downloader (+faster Pandas Datareader)";
|
|
homepage = "https://aroussi.com/post/python-yahoo-finance";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ drewrisinger ];
|
|
};
|
|
}
|