1{ lib
2, aiohttp
3, buildPythonPackage
4, click
5, fetchFromGitHub
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "ovoenergy";
11 version = "1.2.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "timmo001";
18 repo = pname;
19 rev = "v${version}";
20 hash = "sha256-OSK74uvpHuEtWgbLVFrz1NO7lvtHbt690smGQ+GlsOI=";
21 };
22
23 propagatedBuildInputs = [
24 aiohttp
25 click
26 ];
27
28 # Project has no tests
29 doCheck = false;
30
31 pythonImportsCheck = [
32 "ovoenergy"
33 ];
34
35 meta = with lib; {
36 description = "Python client for getting data from OVO's API";
37 homepage = "https://github.com/timmo001/ovoenergy";
38 license = licenses.mit;
39 maintainers = with maintainers; [ fab ];
40 };
41}