nixpkgs/pkgs/development/python-modules/yfinance/default.nix
2022-10-09 11:24:20 +02:00

49 lines
896 B
Nix

{ lib
, appdirs
, buildPythonPackage
, fetchFromGitHub
, multitasking
, numpy
, pandas
, pythonOlder
, requests
, lxml
}:
buildPythonPackage rec {
pname = "yfinance";
version = "0.1.77";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ranaroussi";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-gg9wX3WWacS5BmbR1wgdicFxhPN5b45KH0+obWmJ65g=";
};
propagatedBuildInputs = [
appdirs
multitasking
numpy
pandas
requests
lxml
];
# Tests require internet access
doCheck = false;
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 ];
};
}