9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, h5py
|
|
, numpy
|
|
, pandas
|
|
, pytestCheckHook
|
|
, pytest-mock
|
|
, pytest-remotedata
|
|
, pytest-rerunfailures
|
|
, pytest-timeout
|
|
, pythonOlder
|
|
, pytz
|
|
, requests
|
|
, requests-mock
|
|
, scipy
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pvlib";
|
|
version = "0.10.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi{
|
|
inherit pname version;
|
|
hash = "sha256-H3wiNCmnZ6+GjXMhDbeOL98Yy7V6s2oOFAKWJCb8XCk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
h5py
|
|
numpy
|
|
pandas
|
|
pytz
|
|
requests
|
|
scipy
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-mock
|
|
pytest-remotedata
|
|
pytest-rerunfailures
|
|
pytest-timeout
|
|
requests-mock
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pvlib"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://pvlib-python.readthedocs.io";
|
|
description = "Simulate the performance of photovoltaic energy systems";
|
|
changelog = "https://pvlib-python.readthedocs.io/en/v${version}/whatsnew.html";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ jluttine ];
|
|
};
|
|
}
|