1{ lib 2, async-upnp-client 3, buildPythonPackage 4, fetchFromGitHub 5, lxml 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "openhomedevice"; 11 version = "2.0.2"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.5"; 15 16 src = fetchFromGitHub { 17 owner = "bazwilliams"; 18 repo = pname; 19 rev = version; 20 hash = "sha256-D4n/fv+tgdKiU7CemI+12cqoox2hsqRYlCHY7daD5fM="; 21 }; 22 23 propagatedBuildInputs = [ 24 async-upnp-client 25 lxml 26 ]; 27 28 # Tests are currently outdated 29 # https://github.com/bazwilliams/openhomedevice/issues/20 30 doCheck = false; 31 32 pythonImportsCheck = [ 33 "openhomedevice" 34 ]; 35 36 meta = with lib; { 37 description = "Python module to access Linn Ds and Openhome devices"; 38 homepage = "https://github.com/bazwilliams/openhomedevice"; 39 license = with licenses; [ mit ]; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}