1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
{
lib,
beautifulsoup4,
buildPythonPackage,
cryptography,
curl-cffi,
fetchFromGitHub,
frozendict,
html5lib,
lxml,
multitasking,
numpy,
pandas,
peewee,
platformdirs,
protobuf,
pytz,
requests-cache,
requests-ratelimiter,
requests,
scipy,
setuptools,
websockets,
}:
buildPythonPackage rec {
pname = "yfinance";
version = "0.2.65";
pyproject = true;
src = fetchFromGitHub {
owner = "ranaroussi";
repo = "yfinance";
tag = version;
hash = "sha256-vc+oFjuo9JeK+pCdXKLG2wLGraBJZ+OYz2vOdySwLdU=";
};
build-system = [ setuptools ];
dependencies = [
beautifulsoup4
cryptography
curl-cffi
frozendict
html5lib
lxml
multitasking
numpy
pandas
peewee
platformdirs
protobuf
pytz
requests
websockets
];
optional-dependencies = {
nospam = [
requests-cache
requests-ratelimiter
];
repair = [
scipy
];
};
# Tests require internet access
doCheck = false;
pythonImportsCheck = [ "yfinance" ];
meta = with lib; {
description = "Module to doiwnload Yahoo! Finance market data";
homepage = "https://github.com/ranaroussi/yfinance";
changelog = "https://github.com/ranaroussi/yfinance/blob/${src.tag}/CHANGELOG.rst";
license = licenses.asl20;
maintainers = with maintainers; [ drewrisinger ];
};
}
|