1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchPypi, 6 setuptools, 7 pytz, 8 websockets, 9 pytest-asyncio, 10 pytest-mock, 11 pytestCheckHook, 12}: 13 14buildPythonPackage rec { 15 pname = "bluecurrent-api"; 16 version = "1.2.3"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.11"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-mWRTSMS68+J1Z4PYOFF/UvofSqV1wv0gjiTACEWDfNg="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 dependencies = [ 29 pytz 30 websockets 31 ]; 32 33 pythonImportsCheck = [ "bluecurrent_api" ]; 34 35 nativeCheckInputs = [ 36 pytest-asyncio 37 pytest-mock 38 pytestCheckHook 39 ]; 40 41 meta = { 42 description = "Wrapper for the Blue Current websocket api"; 43 homepage = "https://github.com/bluecurrent/HomeAssistantAPI"; 44 license = lib.licenses.mit; 45 maintainers = with lib.maintainers; [ dotlambda ]; 46 }; 47}