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

54 lines
1 KiB
Nix

{
lib,
aiohttp,
aiozoneinfo,
arrow,
buildPythonPackage,
cryptography,
fetchFromGitHub,
pyotp,
python-dotenv,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "opower";
version = "0.8.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "tronikos";
repo = "opower";
rev = "refs/tags/v${version}";
hash = "sha256-gDd2Ht8SgUkqD1t5AY/zg/J/YG5Gyje8gbPp+5rP+M0=";
};
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 ];
};
}