File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed
development/python-modules/napalm Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff 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 };
You can’t perform that action at this time.
0 commit comments