1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 httpx, 6 poetry-core, 7 pytest-asyncio, 8 pytest-cov-stub, 9 pytestCheckHook, 10 pythonOlder, 11 respx, 12}: 13 14buildPythonPackage rec { 15 pname = "pyecoforest"; 16 version = "0.4.0"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "pjanuario"; 23 repo = "pyecoforest"; 24 tag = "v${version}"; 25 hash = "sha256-C8sFq0vsVsq6irWbRd0eq18tfKu0qRRBZHt23CiDTGU="; 26 }; 27 28 build-system = [ poetry-core ]; 29 30 dependencies = [ httpx ]; 31 32 nativeCheckInputs = [ 33 pytest-asyncio 34 pytest-cov-stub 35 pytestCheckHook 36 respx 37 ]; 38 39 disabledTests = [ 40 # respx.models.AllMockedAssertionError 41 "test_get" 42 "test_get_errors" 43 "test_set_temperature" 44 "test_set_power" 45 "test_turn" 46 ]; 47 48 pythonImportsCheck = [ "pyecoforest" ]; 49 50 meta = with lib; { 51 description = "Module for interacting with Ecoforest devices"; 52 homepage = "https://github.com/pjanuario/pyecoforest"; 53 changelog = "https://github.com/pjanuario/pyecoforest/blob/${version}/CHANGELOG.md"; 54 license = licenses.mit; 55 maintainers = with maintainers; [ fab ]; 56 }; 57}