1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, ifaddr 5, lxml 6, poetry-core 7, pytest-vcr 8, pytestCheckHook 9, pythonOlder 10, requests 11, urllib3 12}: 13 14buildPythonPackage rec { 15 pname = "pywemo"; 16 version = "0.9.1"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = pname; 23 repo = pname; 24 rev = "refs/tags/${version}"; 25 hash = "sha256-RgG2bKA7ifuOPX0ZDKv92S4Gpp9zaansKiEpYrYfPt4="; 26 }; 27 28 nativeBuildInputs = [ 29 poetry-core 30 ]; 31 32 propagatedBuildInputs = [ 33 ifaddr 34 requests 35 urllib3 36 lxml 37 ]; 38 39 checkInputs = [ 40 pytest-vcr 41 pytestCheckHook 42 ]; 43 44 pythonImportsCheck = [ 45 "pywemo" 46 ]; 47 48 meta = with lib; { 49 description = "Python module to discover and control WeMo devices"; 50 homepage = "https://github.com/pywemo/pywemo"; 51 license = with licenses; [ mit ]; 52 maintainers = with maintainers; [ fab ]; 53 }; 54}