summary refs log tree commit diff
path: root/pkgs/development/python-modules/ciscoconfparse/default.nix
blob: 8831999e99231b46316ea3e8b35e5d00ca33abfb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 ];
  };
}