1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, requests 6, websocket-client 7, xmltodict 8}: 9 10buildPythonPackage rec { 11 pname = "pyskyqremote"; 12 version = "0.3.26"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "RogerSelwyn"; 19 repo = "skyq_remote"; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-aMgUwgKHgR+NQvRxiUV7GaXehjDIlJJJHwSmHDmzK08="; 22 }; 23 24 propagatedBuildInputs = [ 25 requests 26 websocket-client 27 xmltodict 28 ]; 29 30 # Project has no tests, only a test script which looks like anusage example 31 doCheck = false; 32 33 pythonImportsCheck = [ 34 "pyskyqremote" 35 ]; 36 37 meta = with lib; { 38 description = "Python module for accessing SkyQ boxes"; 39 homepage = "https://github.com/RogerSelwyn/skyq_remote"; 40 changelog = "https://github.com/RogerSelwyn/skyq_remote/releases/tag/${version}"; 41 license = with licenses; [ mit ]; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}