depot/third_party/nixpkgs/pkgs/development/python-modules/opower/default.nix
Default email 60f07311b9 Project import generated by Copybara.
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
2024-02-06 17:22:34 -08:00

51 lines
970 B
Nix

{ lib
, aiohttp
, arrow
, buildPythonPackage
, fetchFromGitHub
, pyotp
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "opower";
version = "0.3.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "tronikos";
repo = "opower";
rev = "refs/tags/v${version}";
hash = "sha256-YqNHjGJ0BkF8/1LVDqbw9QoJgPgwbA1sIPJUuP4TTJY=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
arrow
pyotp
];
nativeCheckInputs = [
pytestCheckHook
];
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 ];
};
}