1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "maxcube-api"; 11 version = "0.4.3"; 12 format = "setuptools"; 13 disabled = pythonOlder "3.7"; 14 15 src = fetchFromGitHub { 16 owner = "hackercowboy"; 17 repo = "python-${pname}"; 18 rev = "V${version}"; 19 sha256 = "10k61gfpnqljf3p3qxr97xq7j67a9cr4ivd9v72hdni0znrbx6ym"; 20 }; 21 22 postPatch = '' 23 substituteInPlace setup.py --replace "license=license" "license='MIT'" 24 ''; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 disabledTests = [ 29 "testSendRadioMsgClosesConnectionOnErrorAndRetriesIfReusingConnection" 30 "testSendRadioMsgReusesConnection" 31 ]; 32 33 pythonImportsCheck = [ 34 "maxcube" 35 "maxcube.cube" 36 ]; 37 38 meta = with lib; { 39 description = "eQ-3/ELV MAX! Cube Python API"; 40 homepage = "https://github.com/hackercowboy/python-maxcube-api"; 41 license = licenses.mit; 42 maintainers = [ ]; 43 }; 44}