evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / opower / default.nix
blob7c3d47dffe039b4aa2003cc61600985b30605c08
2   lib,
3   aiohttp,
4   aiozoneinfo,
5   arrow,
6   buildPythonPackage,
7   cryptography,
8   fetchFromGitHub,
9   pyotp,
10   python-dotenv,
11   pytestCheckHook,
12   pythonOlder,
13   setuptools,
16 buildPythonPackage rec {
17   pname = "opower";
18   version = "0.8.6";
19   pyproject = true;
21   disabled = pythonOlder "3.9";
23   src = fetchFromGitHub {
24     owner = "tronikos";
25     repo = "opower";
26     rev = "refs/tags/v${version}";
27     hash = "sha256-3GzShdYNfaBxu1azPW8eUR5rDn8rrGiE/MhTmwzLOg8=";
28   };
30   build-system = [ setuptools ];
32   dependencies = [
33     aiohttp
34     aiozoneinfo
35     arrow
36     cryptography
37     pyotp
38   ];
40   nativeCheckInputs = [
41     pytestCheckHook
42     python-dotenv
43   ];
45   pythonImportsCheck = [ "opower" ];
47   meta = with lib; {
48     description = "Module for getting historical and forecasted usage/cost from utilities that use opower.com";
49     homepage = "https://github.com/tronikos/opower";
50     changelog = "https://github.com/tronikos/opower/releases/tag/v${version}";
51     license = licenses.asl20;
52     maintainers = with maintainers; [ fab ];
53   };