lol

Merge pull request #241190 from tjni/pvlib

python310Packages.pvlib: 0.7.2 -> 0.10.0

authored by

Nick Cao and committed by
GitHub
8f0bb37e adcf9729

+37 -34
+37 -34
pkgs/development/python-modules/pvlib/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, fetchpatch, pythonOlder, numpy, pandas, pytz, six 2 - , pytestCheckHook, flaky, mock, pytest-mock, requests }: 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , h5py 5 + , numpy 6 + , pandas 7 + , pytestCheckHook 8 + , pytest-mock 9 + , pytest-remotedata 10 + , pytest-rerunfailures 11 + , pytest-timeout 12 + , pytz 13 + , requests 14 + , requests-mock 15 + , scipy 16 + , setuptools 17 + }: 3 18 4 19 buildPythonPackage rec { 5 20 pname = "pvlib"; 6 - version = "0.7.2"; 7 - 8 - # Support for Python <3.5 dropped in 0.6.3 on June 1, 2019. 9 - disabled = pythonOlder "3.5"; 21 + version = "0.10.0"; 22 + format = "pyproject"; 10 23 11 24 src = fetchPypi{ 12 25 inherit pname version; 13 - sha256 = "40708492ed0a41e900d36933b9b9ab7b575c72ebf3eee81293c626e301aa7ea1"; 26 + hash = "sha256-K/f6tjBznXYJz+Y5tVS1Bj+DKcPtCPlwiKe/YTEsGSI="; 14 27 }; 15 28 16 - patches = [ 17 - # enable later pandas versions, remove next bump 18 - (fetchpatch { 19 - url = "https://github.com/pvlib/pvlib-python/commit/010a2adc9e9ef6fe9f2aea4c02d7e6ede9f96a53.patch"; 20 - sha256 = "0jibn4khixz6hv6racmp86m5mcms0ysz1y5bgpplw1kcvf8sn04x"; 21 - excludes = [ 22 - "pvlib/tests/test_inverter.py" 23 - "docs/sphinx/source/whatsnew/v0.8.0.rst" 24 - "ci/requirements-py35-min.yml" 25 - ]; 26 - }) 29 + nativeBuildInputs = [ 30 + setuptools 27 31 ]; 28 32 29 - nativeCheckInputs = [ pytestCheckHook flaky mock pytest-mock ]; 30 - propagatedBuildInputs = [ numpy pandas pytz six requests ]; 33 + propagatedBuildInputs = [ 34 + h5py 35 + numpy 36 + pandas 37 + pytz 38 + requests 39 + scipy 40 + ]; 31 41 32 - # Skip a few tests that try to access some URLs 33 - pytestFlagsArray = [ "pvlib/tests" ]; 34 - disabledTests = [ 35 - "read_srml_dt_index" 36 - "read_srml_month_from_solardata" 37 - "get_psm3" 38 - "pvgis" 39 - "read_surfrad_network" 40 - "remote" 41 - # small rounding errors, E.g <1e-10^5 42 - "calcparams_pvsyst" 43 - "martin_ruiz_diffuse" 44 - "hsu" 45 - "backtrack" 42 + nativeCheckInputs = [ 43 + pytestCheckHook 44 + pytest-mock 45 + pytest-remotedata 46 + pytest-rerunfailures 47 + pytest-timeout 48 + requests-mock 46 49 ]; 47 50 48 51 meta = with lib; {