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