depot/third_party/nixpkgs/pkgs/development/python-modules/pvlib/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

69 lines
1.2 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
, wheel
}:
buildPythonPackage rec {
pname = "pvlib";
version = "0.10.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi{
inherit pname version;
hash = "sha256-AkobUj1zpjMyNhLn8xWhcJzwbR/UP/CCGQH2akBostk=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
wheel
];
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 ];
};
}