1{ stdenv, buildPythonPackage, fetchPypi, numpy, pandas, pytz, six, pytest }:
2
3buildPythonPackage rec {
4 pname = "pvlib";
5 version = "0.5.2";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "1897v9qq97nk5n0hfm9089yz8pffd42795mnhcyq48g9bsyap1xi";
10 };
11
12 checkInputs = [ pytest ];
13 propagatedBuildInputs = [ numpy pandas pytz six ];
14
15 # Currently, the PyPI tarball doesn't contain the tests. When that has been
16 # fixed, enable testing. See: https://github.com/pvlib/pvlib-python/issues/473
17 doCheck = false;
18
19 meta = with stdenv.lib; {
20 homepage = http://pvlib-python.readthedocs.io;
21 description = "Simulate the performance of photovoltaic energy systems";
22 license = licenses.bsd3;
23 maintainers = with maintainers; [ jluttine ];
24 };
25}