diff options
author | Jaakko Luttinen <jaakko.luttinen@iki.fi> | 2019-09-07 14:31:25 +0300 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2019-09-08 17:49:40 +0200 |
commit | 8e814a802bfecb9b53acd89b03c4cca0588eddce (patch) | |
tree | 34a9aecb9d0dc57d94fe003a1a9bf3f7c4bf7e00 /pkgs/development | |
parent | 2a44aebb9f46b0ed22738202f931fa12bdf528e2 (diff) | |
download | nixlib-8e814a802bfecb9b53acd89b03c4cca0588eddce.tar nixlib-8e814a802bfecb9b53acd89b03c4cca0588eddce.tar.gz nixlib-8e814a802bfecb9b53acd89b03c4cca0588eddce.tar.bz2 nixlib-8e814a802bfecb9b53acd89b03c4cca0588eddce.tar.lz nixlib-8e814a802bfecb9b53acd89b03c4cca0588eddce.tar.xz nixlib-8e814a802bfecb9b53acd89b03c4cca0588eddce.tar.zst nixlib-8e814a802bfecb9b53acd89b03c4cca0588eddce.zip |
pythonPackages.pvlib: 0.6.1 -> 0.6.3
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/pvlib/default.nix | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/pvlib/default.nix b/pkgs/development/python-modules/pvlib/default.nix index 91af07b49be3..cdd6011aba2e 100644 --- a/pkgs/development/python-modules/pvlib/default.nix +++ b/pkgs/development/python-modules/pvlib/default.nix @@ -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 ''; |