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