1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fetchPypi, 6 mock, 7 psutil, 8 pytestCheckHook, 9 pythonOlder, 10 six, 11}: 12 13buildPythonPackage rec { 14 pname = "pylink-square"; 15 version = "1.2.0"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "square"; 22 repo = "pylink"; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-rcM7gvUUfXN5pL9uIihzmOCXA7NKjiMt2GaQaGJxD9M="; 25 }; 26 27 propagatedBuildInputs = [ 28 psutil 29 six 30 ]; 31 32 nativeCheckInputs = [ 33 mock 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ "pylink" ]; 38 39 disabledTests = [ 40 # AttributeError: 'called_once_with' is not a valid assertion 41 "test_cp15_register_write_success" 42 "test_jlink_restarted" 43 "test_set_log_file_success" 44 ]; 45 46 meta = with lib; { 47 description = "Python interface for the SEGGER J-Link"; 48 homepage = "https://github.com/square/pylink"; 49 changelog = "https://github.com/square/pylink/blob/v${version}/CHANGELOG.md"; 50 license = licenses.asl20; 51 maintainers = with maintainers; [ dump_stack ]; 52 }; 53}