1{ lib
2, aiohttp
3, async-timeout
4, buildPythonPackage
5, fetchFromGitHub
6, pytest-aiohttp
7, pytestCheckHook
8, pythonOlder
9, yarl
10}:
11
12buildPythonPackage rec {
13 pname = "energyflip-client";
14 version = "0.2.2";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "dennisschroer";
21 repo = pname;
22 rev = "refs/tags/v${version}";
23 hash = "sha256-neuZ6pZWW/Rgexu/iCEymjnxi5l/IuLKPFn6S9U4DgU=";
24 };
25
26 propagatedBuildInputs = [
27 aiohttp
28 async-timeout
29 yarl
30 ];
31
32 nativeCheckInputs = [
33 pytest-aiohttp
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [
38 "energyflip"
39 ];
40
41 meta = with lib; {
42 description = "Library to communicate with the API behind EnergyFlip";
43 homepage = "https://github.com/dennisschroer/energyflip-client";
44 license = licenses.asl20;
45 maintainers = with maintainers; [ fab ];
46 };
47}