1{ 2 lib, 3 aioresponses, 4 async-upnp-client, 5 buildPythonPackage, 6 fetchFromGitHub, 7 lxml, 8 pytestCheckHook, 9 pythonOlder, 10 setuptools, 11}: 12 13buildPythonPackage rec { 14 pname = "openhomedevice"; 15 version = "2.3.1"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.6"; 19 20 src = fetchFromGitHub { 21 owner = "bazwilliams"; 22 repo = "openhomedevice"; 23 tag = version; 24 hash = "sha256-u05aciRFCnqMJRClUMApAPDLpXOKn4wUTLgvR7BVZTA="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ 30 async-upnp-client 31 lxml 32 ]; 33 34 nativeCheckInputs = [ 35 aioresponses 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "openhomedevice" ]; 40 41 enabledTestPaths = [ "tests/*.py" ]; 42 43 meta = with lib; { 44 description = "Python module to access Linn Ds and Openhome devices"; 45 homepage = "https://github.com/bazwilliams/openhomedevice"; 46 changelog = "https://github.com/bazwilliams/openhomedevice/releases/tag/${version}"; 47 license = with licenses; [ mit ]; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}