blob: b98c2508458ed25efbcc18410fec734b7ed64e4c (
plain) (
blame)
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
|
{ lib
, aiohttp
, aioresponses
, buildPythonPackage
, fetchFromGitHub
, pandas
, pytestCheckHook
, requests
, requests-mock
}:
buildPythonPackage rec {
pname = "alpha-vantage";
version = "2.3.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "RomelTorres";
repo = "alpha_vantage";
rev = version;
sha256 = "0cyw6zw7c7r076rmhnmg905ihwb9r7g511n6gdlph06v74pdls8d";
};
propagatedBuildInputs = [
aiohttp
requests
];
nativeCheckInputs = [
aioresponses
requests-mock
pandas
pytestCheckHook
];
disabledTestPaths = [
# Tests require network access
"test_alpha_vantage/test_integration_alphavantage.py"
"test_alpha_vantage/test_integration_alphavantage_async.py"
];
pythonImportsCheck = [ "alpha_vantage" ];
meta = with lib; {
description = "Python module for the Alpha Vantage API";
homepage = "https://github.com/RomelTorres/alpha_vantage";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
|