bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
52 lines
1,021 B
Nix
52 lines
1,021 B
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
aiozoneinfo,
|
|
arrow,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pyotp,
|
|
python-dotenv,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "opower";
|
|
version = "0.5.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tronikos";
|
|
repo = "opower";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-Rv5ttUUlBqa4yFEV5WWrZ+fhL/mrvjoYFsMN6xnFUhQ=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
aiozoneinfo
|
|
arrow
|
|
pyotp
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
python-dotenv
|
|
];
|
|
|
|
pythonImportsCheck = [ "opower" ];
|
|
|
|
meta = with lib; {
|
|
description = "Module for getting historical and forecasted usage/cost from utilities that use opower.com";
|
|
homepage = "https://github.com/tronikos/opower";
|
|
changelog = "https://github.com/tronikos/opower/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|