Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ef5a166a9d4a
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: eef63417d46c
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Mar 1, 2019

  1. Copy the full SHA
    eef6341 View commit details
Showing with 18 additions and 8 deletions.
  1. +18 −8 pkgs/development/python-modules/pvlib/default.nix
26 changes: 18 additions & 8 deletions pkgs/development/python-modules/pvlib/default.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
{ stdenv, buildPythonPackage, fetchPypi, numpy, pandas, pytz, six, pytest }:
{ stdenv, buildPythonPackage, fetchFromGitHub, numpy, pandas, pytz, six
, pytest, mock, pytest-mock }:

buildPythonPackage rec {
pname = "pvlib";
version = "0.6.1";

src = fetchPypi {
inherit pname version;
sha256 = "56e70747add2e50846dd8bbef9a4735e82c1224ce630d1db7590b96bd59dd3f7";
# 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";
};

checkInputs = [ pytest ];
checkInputs = [ pytest mock pytest-mock ];
propagatedBuildInputs = [ numpy pandas pytz six ];

# Currently, the PyPI tarball doesn't contain the tests. When that has been
# fixed, enable testing. See: https://github.com/pvlib/pvlib-python/issues/473
doCheck = false;
# 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"
popd
runHook postCheck
'';

meta = with stdenv.lib; {
homepage = http://pvlib-python.readthedocs.io;