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 src = fetchFromGitHub { 17 owner = "napalm-automation-community"; 18 repo = "napalm-ros"; 19 tag = version; 20 hash = "sha256-Fv11Blx44vZZ8NuhQQIFpDr+dH2gDJtQP7b0kAk3U/s="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 dependencies = [ librouteros ]; 26 27 nativeCheckInputs = [ 28 napalm 29 pytestCheckHook 30 ]; 31 32 disabledTests = [ 33 # AssertionError: Some methods vary. 34 "test_method_signatures" 35 ]; 36 37 pythonImportsCheck = [ "napalm_ros" ]; 38 39 meta = { 40 description = "MikroTik RouterOS NAPALM driver"; 41 homepage = "https://github.com/napalm-automation-community/napalm-ros"; 42 changelog = "https://github.com/napalm-automation-community/napalm-ros/releases/tag/${src.tag}"; 43 license = lib.licenses.gpl2Plus; 44 platforms = lib.platforms.linux; 45 maintainers = with lib.maintainers; [ felbinger ]; 46 }; 47}