1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 h5py,
6 numpy,
7 pandas,
8 pytestCheckHook,
9 pytest-mock,
10 pytest-remotedata,
11 pytest-rerunfailures,
12 pytest-timeout,
13 pythonOlder,
14 pytz,
15 requests,
16 requests-mock,
17 scipy,
18 setuptools,
19 setuptools-scm,
20}:
21
22buildPythonPackage rec {
23 pname = "pvlib";
24 version = "0.13.0";
25 pyproject = true;
26
27 disabled = pythonOlder "3.7";
28
29 src = fetchPypi {
30 inherit pname version;
31 hash = "sha256-zvNs3ZMqanvy3XyZKwAEsaCNMV7oBDsnPRkq1XkC6Fo=";
32 };
33
34 build-system = [
35 setuptools
36 setuptools-scm
37 ];
38
39 dependencies = [
40 h5py
41 numpy
42 pandas
43 pytz
44 requests
45 scipy
46 ];
47
48 nativeCheckInputs = [
49 pytest-mock
50 pytest-remotedata
51 pytest-rerunfailures
52 pytest-timeout
53 pytestCheckHook
54 requests-mock
55 ];
56
57 pythonImportsCheck = [ "pvlib" ];
58
59 meta = with lib; {
60 description = "Simulate the performance of photovoltaic energy systems";
61 homepage = "https://pvlib-python.readthedocs.io";
62 changelog = "https://pvlib-python.readthedocs.io/en/v${version}/whatsnew.html";
63 license = licenses.bsd3;
64 maintainers = with maintainers; [ jluttine ];
65 };
66}