summary refs log tree commit diff
path: root/pkgs/development/python-modules/pvlib/default.nix
blob: 34134546f56d4d2d14f1eeefd02d898b0d2acb81 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, buildPythonPackage, fetchPypi, numpy, pandas, pytz, six, pytest }:

buildPythonPackage rec {
  pname = "pvlib";
  version = "0.6.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1j2p6w41hv7k604jbcpxvs5f04y8dsfdvd3d202l60ks0fc0agyj";
  };

  checkInputs = [ pytest ];
  propagatedBuildInputs = [ numpy pandas pytz six ];

  # Currently, the PyPI tarball doesn't contain the tests. When that has been
  # fixed, enable testing. See: https://github.com/pvlib/pvlib-python/issues/473
  doCheck = false;

  meta = with stdenv.lib; {
    homepage = http://pvlib-python.readthedocs.io;
    description = "Simulate the performance of photovoltaic energy systems";
    license = licenses.bsd3;
    maintainers = with maintainers; [ jluttine ];
  };
}