1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 poetry-core, 7 pytest-aiohttp, 8 pytestCheckHook, 9 pythonOlder, 10 voluptuous, 11 vcrpy, 12}: 13 14buildPythonPackage rec { 15 pname = "python-awair"; 16 version = "0.2.4"; 17 format = "pyproject"; 18 disabled = pythonOlder "3.6"; 19 20 src = fetchFromGitHub { 21 owner = "ahayworth"; 22 repo = "python_awair"; 23 rev = version; 24 hash = "sha256-zdZyA6adM4bfEYupdZl7CzMjwyfRkQBrntNh0MusynE="; 25 }; 26 27 nativeBuildInputs = [ poetry-core ]; 28 29 propagatedBuildInputs = [ 30 aiohttp 31 voluptuous 32 ]; 33 34 nativeCheckInputs = [ 35 pytest-aiohttp 36 pytestCheckHook 37 vcrpy 38 ]; 39 40 pythonImportsCheck = [ "python_awair" ]; 41 42 meta = with lib; { 43 description = "Python library for the Awair API"; 44 homepage = "https://github.com/ahayworth/python_awair"; 45 license = with licenses; [ mit ]; 46 maintainers = with maintainers; [ fab ]; 47 }; 48}