depot/third_party/nixpkgs/pkgs/development/python-modules/opower/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

52 lines
1,021 B
Nix

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