depot/third_party/nixpkgs/pkgs/development/python-modules/opower/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

55 lines
1,015 B
Nix

{ lib
, aiohttp
, arrow
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, setuptools
}:
buildPythonPackage rec {
pname = "opower";
version = "0.0.14";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tronikos";
repo = "opower";
rev = "refs/tags/v${version}";
hash = "sha256-eTlFb/v88jaEzx5H8ofHMNkqPunDvXcXGvg5ThripeA=";
};
pythonRemoveDeps = [
# https://github.com/tronikos/opower/pull/4
"asyncio"
];
nativeBuildInputs = [
pythonRelaxDepsHook
setuptools
];
propagatedBuildInputs = [
aiohttp
arrow
];
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";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}