Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 34 lines 1.0 kB view raw
1{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, numpy, pandas, pytz, six 2, pytest, mock, pytest-mock, requests }: 3 4buildPythonPackage rec { 5 pname = "pvlib"; 6 version = "0.7.0"; 7 8 # Support for Python <3.5 dropped in 0.6.3 on June 1, 2019. 9 disabled = pythonOlder "3.5"; 10 11 src = fetchPypi{ 12 inherit pname version; 13 sha256 = "ee935ba52f1d4a514cc3baa743db0377af732952faf800f20ffd8071fa2107c2"; 14 }; 15 16 checkInputs = [ pytest mock pytest-mock ]; 17 propagatedBuildInputs = [ numpy pandas pytz six requests ]; 18 19 # Skip a few tests that try to access some URLs 20 checkPhase = '' 21 runHook preCheck 22 pushd pvlib/test 23 pytest . -k "not test_read_srml_dt_index and not test_read_srml_month_from_solardata and not test_get_psm3" 24 popd 25 runHook postCheck 26 ''; 27 28 meta = with stdenv.lib; { 29 homepage = https://pvlib-python.readthedocs.io; 30 description = "Simulate the performance of photovoltaic energy systems"; 31 license = licenses.bsd3; 32 maintainers = with maintainers; [ jluttine ]; 33 }; 34}