mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
37 lines
771 B
Nix
37 lines
771 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, multitasking
|
|
, numpy
|
|
, pandas
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "yfinance";
|
|
version = "0.1.55";
|
|
|
|
# GitHub source releases aren't tagged
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "65d39bccf16bef35f6a08bf0df33650c0515b5ce8ea3c53924601f5fe00590cb";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
multitasking
|
|
numpy
|
|
pandas
|
|
requests
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|