pythonPackages.pvlib: 0.6.1 -> 0.6.3

This commit is contained in:
Jaakko Luttinen 2019-09-07 14:31:25 +03:00 committed by Frederik Rietdijk
parent 2a44aebb9f
commit 8e814a802b

View file

@ -1,27 +1,26 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, numpy, pandas, pytz, six
, pytest, mock, pytest-mock }:
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, numpy, pandas, pytz, six
, pytest, mock, pytest-mock, requests }:
buildPythonPackage rec {
pname = "pvlib";
version = "0.6.1";
version = "0.6.3";
# Use GitHub because PyPI release tarball doesn't contain the tests. See:
# https://github.com/pvlib/pvlib-python/issues/473
src = fetchFromGitHub{
owner = "pvlib";
repo = "pvlib-python";
rev = "v${version}";
sha256 = "17h7vz9s829qxnl4byr8458gzgiismrbrn5gl0klhfhwvc5kkdfh";
# Support for Python <3.5 dropped in 0.6.3 on June 1, 2019.
disabled = pythonOlder "3.5";
src = fetchPypi{
inherit pname version;
sha256 = "03nvgpmnscd7rh9jwm2h579zvriq5lva6rsdhb6jckpra5wjkn69";
};
checkInputs = [ pytest mock pytest-mock ];
propagatedBuildInputs = [ numpy pandas pytz six ];
propagatedBuildInputs = [ numpy pandas pytz six requests ];
# Skip a few tests that try to access some URLs
checkPhase = ''
runHook preCheck
pushd pvlib/test
pytest . -k "not test_read_srml_dt_index and not test_read_srml_month_from_solardata"
pytest . -k "not test_read_srml_dt_index and not test_read_srml_month_from_solardata and not test_get_psm3"
popd
runHook postCheck
'';