Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pvlib / default.nix
blob683295edbc7fcf403d96cf4ca76116b5cb701bf8
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , h5py
5 , numpy
6 , pandas
7 , pytestCheckHook
8 , pytest-mock
9 , pytest-remotedata
10 , pytest-rerunfailures
11 , pytest-timeout
12 , pythonOlder
13 , pytz
14 , requests
15 , requests-mock
16 , scipy
17 , setuptools
18 , setuptools-scm
19 , wheel
22 buildPythonPackage rec {
23   pname = "pvlib";
24   version = "0.10.2";
25   format = "pyproject";
27   disabled = pythonOlder "3.7";
29   src = fetchPypi{
30     inherit pname version;
31     hash = "sha256-gCOFP2heAtzpe38j1ljOz1yR1P8pRZ0eILVK8Kd3tFc=";
32   };
34   nativeBuildInputs = [
35     setuptools
36     setuptools-scm
37     wheel
38   ];
40   propagatedBuildInputs = [
41     h5py
42     numpy
43     pandas
44     pytz
45     requests
46     scipy
47   ];
49   nativeCheckInputs = [
50     pytestCheckHook
51     pytest-mock
52     pytest-remotedata
53     pytest-rerunfailures
54     pytest-timeout
55     requests-mock
56   ];
58   pythonImportsCheck = [
59     "pvlib"
60   ];
62   meta = with lib; {
63     homepage = "https://pvlib-python.readthedocs.io";
64     description = "Simulate the performance of photovoltaic energy systems";
65     changelog = "https://pvlib-python.readthedocs.io/en/v${version}/whatsnew.html";
66     license = licenses.bsd3;
67     maintainers = with maintainers; [ jluttine ];
68   };