Skip to content

Commit 005b37d

Browse files
python312Packages.napalm-ros: init at 1.2.6 (NixOS#374546)
2 parents 2218eb7 + 328fdd6 commit 005b37d

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
setuptools,
6+
napalm,
7+
librouteros,
8+
pytestCheckHook,
9+
pythonAtLeast,
10+
}:
11+
buildPythonPackage 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+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9058,6 +9058,8 @@ self: super: with self; {
90589058

90599059
napalm-hp-procurve = callPackage ../development/python-modules/napalm/hp-procurve.nix { };
90609060

9061+
napalm-ros = callPackage ../development/python-modules/napalm/ros.nix { };
9062+
90619063
napari = callPackage ../development/python-modules/napari {
90629064
inherit (pkgs.libsForQt5) mkDerivationWith wrapQtAppsHook;
90639065
};

0 commit comments

Comments
 (0)