mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00

Diff: https://github.com/tronikos/opower/compare/refs/tags/v0.9.0...v0.10.0 Changelog: https://github.com/tronikos/opower/releases/tag/v0.10.0
54 lines
1 KiB
Nix
54 lines
1 KiB
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
aiozoneinfo,
|
|
arrow,
|
|
buildPythonPackage,
|
|
cryptography,
|
|
fetchFromGitHub,
|
|
pyotp,
|
|
python-dotenv,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "opower";
|
|
version = "0.10.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tronikos";
|
|
repo = "opower";
|
|
tag = "v${version}";
|
|
hash = "sha256-2ENP67OD466T6jLyyUxOz5CXKzVRhucpEycOXj42Ue0=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
aiozoneinfo
|
|
arrow
|
|
cryptography
|
|
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 ];
|
|
};
|
|
}
|