33 lines
665 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "textfsm";
version = "2.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "google";
repo = pname;
tag = "v${version}";
hash = "sha256-ygVcDdT85mRN+qYfTZqraRVyp2JlLwwujBW1e/pPJNc=";
};
build-system = [ setuptools ];
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 = [ ];
};
}