1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 requests, 7 pycryptodome, 8 pytest-cov-stub, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "pymitsubishi"; 14 version = "0.3.0"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "pymitsubishi"; 19 repo = "pymitsubishi"; 20 tag = "v${version}"; 21 hash = "sha256-cfLKFvhzLN9dM0cMogCL93LVfRd8jDFo9x+nnEWInSc="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 dependencies = [ 27 requests 28 pycryptodome 29 ]; 30 31 nativeCheckInputs = [ 32 pytest-cov-stub 33 pytestCheckHook 34 ]; 35 36 pythonImportsCheck = [ "pymitsubishi" ]; 37 38 meta = { 39 description = "Library for controlling and monitoring Mitsubishi MAC-577IF-2E air conditioners"; 40 homepage = "https://github.com/pymitsubishi/pymitsubishi"; 41 changelog = "https://github.com/pymitsubishi/pymitsubishi/releases/tag/${src.tag}"; 42 license = lib.licenses.mit; 43 maintainers = with lib.maintainers; [ uvnikita ]; 44 }; 45}