1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 napalm, 7 librouteros, 8 pytestCheckHook, 9 pythonAtLeast, 10}: 11buildPythonPackage rec { 12 pname = "napalm-ros"; 13 version = "1.2.6"; 14 pyproject = true; 15 16 disabled = pythonAtLeast "3.13"; 17 18 src = fetchFromGitHub { 19 owner = "napalm-automation-community"; 20 repo = "napalm-ros"; 21 tag = version; 22 hash = "sha256-Fv11Blx44vZZ8NuhQQIFpDr+dH2gDJtQP7b0kAk3U/s="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ librouteros ]; 28 29 nativeCheckInputs = [ 30 napalm 31 pytestCheckHook 32 ]; 33 34 disabledTests = [ 35 # AssertionError: Some methods vary. 36 "test_method_signatures" 37 ]; 38 39 pythonImportsCheck = [ "napalm_ros" ]; 40 41 meta = { 42 description = "MikroTik RouterOS NAPALM driver"; 43 homepage = "https://github.com/napalm-automation-community/napalm-ros"; 44 changelog = "https://github.com/napalm-automation-community/napalm-ros/releases/tag/${src.tag}"; 45 license = lib.licenses.gpl2Plus; 46 platforms = lib.platforms.linux; 47 maintainers = with lib.maintainers; [ felbinger ]; 48 }; 49}