summary refs log tree commit diff
path: root/pkgs/development/python-modules/ciscoconfparse
diff options
context:
space:
mode:
authorAstro <astro@spaceboyz.net>2022-01-20 18:57:04 +0100
committerAstro <astro@spaceboyz.net>2022-01-25 15:56:27 +0100
commitbae61a5785fc9327045aa5e88f98186d436f93cf (patch)
tree523e941069683cd6b3a7f8c4214858a9b2283dab /pkgs/development/python-modules/ciscoconfparse
parent5c3829a8b11f5104ffb7f819f5f23ce8c1cd19d3 (diff)
downloadnixpkgs-bae61a5785fc9327045aa5e88f98186d436f93cf.tar
nixpkgs-bae61a5785fc9327045aa5e88f98186d436f93cf.tar.gz
nixpkgs-bae61a5785fc9327045aa5e88f98186d436f93cf.tar.bz2
nixpkgs-bae61a5785fc9327045aa5e88f98186d436f93cf.tar.lz
nixpkgs-bae61a5785fc9327045aa5e88f98186d436f93cf.tar.xz
nixpkgs-bae61a5785fc9327045aa5e88f98186d436f93cf.tar.zst
nixpkgs-bae61a5785fc9327045aa5e88f98186d436f93cf.zip
napalm: init at 3.3.1
Diffstat (limited to 'pkgs/development/python-modules/ciscoconfparse')
-rw-r--r--pkgs/development/python-modules/ciscoconfparse/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ciscoconfparse/default.nix b/pkgs/development/python-modules/ciscoconfparse/default.nix
new file mode 100644
index 00000000000..8831999e992
--- /dev/null
+++ b/pkgs/development/python-modules/ciscoconfparse/default.nix
@@ -0,0 +1,32 @@
+{ lib, buildPythonPackage, fetchFromGitHub, passlib, dnspython, loguru, toml
+, ipaddr, poetry, poetry-core, black, Fabric, pytest, sphinx }:
+
+buildPythonPackage rec {
+  pname = "ciscoconfparse";
+  version = "1.6.21";
+  format = "pyproject";
+
+  src = fetchFromGitHub {
+    owner = "mpenning";
+    repo = pname;
+    rev = version;
+    sha256 = "1d6nzhmdg7zlg1h3lm4v7j4hsb2aqd475r5q5vcqxfdxszc92w21";
+  };
+
+  patchPhase = ''
+    patchShebangs tests
+  '';
+
+  propagatedBuildInputs =
+    [ passlib dnspython loguru toml ipaddr poetry black Fabric sphinx ];
+
+  checkInputs = [ pytest ];
+
+  meta = with lib; {
+    description =
+      "Parse, Audit, Query, Build, and Modify Cisco IOS-style configurations";
+    homepage = "https://github.com/mpenning/ciscoconfparse";
+    license = licenses.gpl3Only;
+    maintainers = [ maintainers.astro ];
+  };
+}