1{ lib 2, aiohttp 3, aresponses 4, buildPythonPackage 5, fetchFromGitHub 6, poetry-core 7, pytest-aiohttp 8, pytest-asyncio 9, pytestCheckHook 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "aiowatttime"; 15 version = "2021.10.0"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "bachya"; 22 repo = pname; 23 rev = version; 24 sha256 = "sha256-cWXhQMgRYBzOVgUQWONIwWFB5n/f0lqkSjUb9IoPwtI="; 25 }; 26 27 nativeBuildInputs = [ 28 poetry-core 29 ]; 30 31 propagatedBuildInputs = [ 32 aiohttp 33 ]; 34 35 checkInputs = [ 36 aresponses 37 pytest-aiohttp 38 pytest-asyncio 39 pytestCheckHook 40 ]; 41 42 # Ignore the examples directory as the files are prefixed with test_ 43 disabledTestPaths = [ "examples/" ]; 44 45 pythonImportsCheck = [ "aiowatttime" ]; 46 47 meta = with lib; { 48 description = "Python library for interacting with WattTime"; 49 homepage = "https://github.com/bachya/aiowatttime"; 50 license = with licenses; [ mit ]; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}