1{
2 lib,
3 appdirs,
4 beautifulsoup4,
5 buildPythonPackage,
6 cryptography,
7 fetchFromGitHub,
8 frozendict,
9 html5lib,
10 lxml,
11 multitasking,
12 numpy,
13 pandas,
14 peewee,
15 pythonOlder,
16 requests,
17 setuptools,
18}:
19
20buildPythonPackage rec {
21 pname = "yfinance";
22 version = "0.2.38";
23 pyproject = true;
24
25 disabled = pythonOlder "3.7";
26
27 src = fetchFromGitHub {
28 owner = "ranaroussi";
29 repo = "yfinance";
30 rev = "refs/tags/${version}";
31 hash = "sha256-ZGwtu2vLcE9pM73umhnFwSzjQnGjTOTtVF607ox7I6E=";
32 };
33
34 build-system = [ setuptools ];
35
36 dependencies = [
37 appdirs
38 beautifulsoup4
39 cryptography
40 frozendict
41 html5lib
42 lxml
43 multitasking
44 numpy
45 pandas
46 peewee
47 requests
48 ];
49
50 # Tests require internet access
51 doCheck = false;
52
53 pythonImportsCheck = [ "yfinance" ];
54
55 meta = with lib; {
56 description = "Module to doiwnload Yahoo! Finance market data";
57 homepage = "https://github.com/ranaroussi/yfinance";
58 changelog = "https://github.com/ranaroussi/yfinance/blob/${version}/CHANGELOG.rst";
59 license = licenses.asl20;
60 maintainers = with maintainers; [ drewrisinger ];
61 };
62}