depot/third_party/nixpkgs/pkgs/development/python-modules/ciscoconfparse/default.nix
Default email 871149a62e Project import generated by Copybara.
GitOrigin-RevId: 7f9b6e2babf232412682c09e57ed666d8f84ac2d
2022-02-21 09:47:16 +01:00

32 lines
842 B
Nix

{ 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 ];
};
}