1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 pythonAtLeast,
6 fetchPypi,
7 setuptools,
8 pandas,
9 lxml,
10 requests,
11}:
12
13buildPythonPackage rec {
14 pname = "pandas-datareader";
15 version = "0.10.0";
16 pyproject = true;
17
18 disabled = pythonOlder "3.6" || pythonAtLeast "3.12";
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "9fc3c63d39bc0c10c2683f1c6d503ff625020383e38f6cbe14134826b454d5a6";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 pandas
29 lxml
30 requests
31 ];
32
33 # Tests are trying to load data over the network
34 doCheck = false;
35 pythonImportsCheck = [ "pandas_datareader" ];
36
37 meta = with lib; {
38 description = "Up to date remote data access for pandas, works for multiple versions of pandas";
39 homepage = "https://github.com/pydata/pandas-datareader";
40 license = licenses.bsd3;
41 maintainers = with maintainers; [ evax ];
42 platforms = platforms.unix;
43 };
44}