depot/third_party/nixpkgs/pkgs/development/python-modules/forecast-solar/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

46 lines
1,019 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pythonOlder,
aiodns,
aiohttp,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "forecast-solar";
version = "3.1.0";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "home-assistant-libs";
repo = "forecast_solar";
rev = "refs/tags/v${version}";
hash = "sha256-iol0XtfPZI95o/uEyBcXgeQjcfl2kI+4mugtywa6BXI=";
};
build-system = [ setuptools ];
env.PACKAGE_VERSION = version;
dependencies = [
aiodns
aiohttp
];
pythonImportsCheck = [ "forecast_solar" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
changelog = "https://github.com/home-assistant-libs/forecast_solar/releases/tag/v${version}";
description = "Asynchronous Python client for getting forecast solar information";
homepage = "https://github.com/home-assistant-libs/forecast_solar";
license = licenses.mit;
maintainers = with maintainers; [ dotlambda ];
};
}