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