5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
66 lines
1.1 KiB
Nix
66 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,
|
|
setuptools-scm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pvlib";
|
|
version = "0.10.5";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-I+y59o4L+wLOF+hARLUh+341NYHlOKMfnq0ETs0ZUL0=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [
|
|
h5py
|
|
numpy
|
|
pandas
|
|
pytz
|
|
requests
|
|
scipy
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-mock
|
|
pytest-remotedata
|
|
pytest-rerunfailures
|
|
pytest-timeout
|
|
pytestCheckHook
|
|
requests-mock
|
|
];
|
|
|
|
pythonImportsCheck = [ "pvlib" ];
|
|
|
|
meta = with lib; {
|
|
description = "Simulate the performance of photovoltaic energy systems";
|
|
homepage = "https://pvlib-python.readthedocs.io";
|
|
changelog = "https://pvlib-python.readthedocs.io/en/v${version}/whatsnew.html";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ jluttine ];
|
|
};
|
|
}
|