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