nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, multitasking
5, numpy
6, pandas
7, requests
8, lxml
9}:
10
11buildPythonPackage rec {
12 pname = "yfinance";
13 version = "0.1.70";
14
15 src = fetchFromGitHub {
16 owner = "ranaroussi";
17 repo = pname;
18 rev = version;
19 sha256 = "sha256-Anvt+ag0PysGynQv4q+2IrQmCPZViGqWI4dgfLQWGds=";
20 };
21
22 propagatedBuildInputs = [
23 multitasking
24 numpy
25 pandas
26 requests
27 lxml
28 ];
29
30 doCheck = false; # Tests require internet access
31 pythonImportsCheck = [ "yfinance" ];
32
33 meta = with lib; {
34 description = "Yahoo! Finance market data downloader (+faster Pandas Datareader)";
35 homepage = "https://aroussi.com/post/python-yahoo-finance";
36 license = licenses.asl20;
37 maintainers = with maintainers; [ drewrisinger ];
38 };
39}