depot/third_party/nixpkgs/pkgs/development/python-modules/textfsm/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

42 lines
842 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
six,
future,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "textfsm";
version = "1.1.3";
format = "setuptools";
src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = "v${version}";
hash = "sha256-IHgKG8v0X+LSK6purWBdwDnI/BCs5XA12ZJixuqqXWg=";
};
# upstream forgot to update the release version
postPatch = ''
substituteInPlace textfsm/__init__.py \
--replace "1.1.2" "1.1.3"
'';
propagatedBuildInputs = [
six
future
];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Python module for parsing semi-structured text into python tables";
mainProgram = "textfsm";
homepage = "https://github.com/google/textfsm";
license = licenses.asl20;
maintainers = [ ];
};
}