python310Packages.pvlib: 0.7.2 -> 0.10.0

This commit is contained in:
Theodore Ni 2023-07-02 16:17:54 -07:00
parent 7672c1e9ae
commit 6c00f165ff
No known key found for this signature in database
GPG Key ID: 48B67583BDDD4474

View File

@ -1,48 +1,51 @@
{ lib, buildPythonPackage, fetchPypi, fetchpatch, pythonOlder, numpy, pandas, pytz, six { lib
, pytestCheckHook, flaky, mock, pytest-mock, requests }: , buildPythonPackage
, fetchPypi
, h5py
, numpy
, pandas
, pytestCheckHook
, pytest-mock
, pytest-remotedata
, pytest-rerunfailures
, pytest-timeout
, pytz
, requests
, requests-mock
, scipy
, setuptools
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pvlib"; pname = "pvlib";
version = "0.7.2"; version = "0.10.0";
format = "pyproject";
# Support for Python <3.5 dropped in 0.6.3 on June 1, 2019.
disabled = pythonOlder "3.5";
src = fetchPypi{ src = fetchPypi{
inherit pname version; inherit pname version;
sha256 = "40708492ed0a41e900d36933b9b9ab7b575c72ebf3eee81293c626e301aa7ea1"; hash = "sha256-K/f6tjBznXYJz+Y5tVS1Bj+DKcPtCPlwiKe/YTEsGSI=";
}; };
patches = [ nativeBuildInputs = [
# enable later pandas versions, remove next bump setuptools
(fetchpatch {
url = "https://github.com/pvlib/pvlib-python/commit/010a2adc9e9ef6fe9f2aea4c02d7e6ede9f96a53.patch";
sha256 = "0jibn4khixz6hv6racmp86m5mcms0ysz1y5bgpplw1kcvf8sn04x";
excludes = [
"pvlib/tests/test_inverter.py"
"docs/sphinx/source/whatsnew/v0.8.0.rst"
"ci/requirements-py35-min.yml"
];
})
]; ];
nativeCheckInputs = [ pytestCheckHook flaky mock pytest-mock ]; propagatedBuildInputs = [
propagatedBuildInputs = [ numpy pandas pytz six requests ]; h5py
numpy
pandas
pytz
requests
scipy
];
# Skip a few tests that try to access some URLs nativeCheckInputs = [
pytestFlagsArray = [ "pvlib/tests" ]; pytestCheckHook
disabledTests = [ pytest-mock
"read_srml_dt_index" pytest-remotedata
"read_srml_month_from_solardata" pytest-rerunfailures
"get_psm3" pytest-timeout
"pvgis" requests-mock
"read_surfrad_network"
"remote"
# small rounding errors, E.g <1e-10^5
"calcparams_pvsyst"
"martin_ruiz_diffuse"
"hsu"
"backtrack"
]; ];
meta = with lib; { meta = with lib; {