summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/textfsm/default.nix
blob: 13347eb047dd37adba1d78863b95dae2ecd52d85 (plain)
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
33
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "textfsm";
  version = "2.1.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "google";
    repo = "textfsm";
    tag = "v${version}";
    hash = "sha256-ygVcDdT85mRN+qYfTZqraRVyp2JlLwwujBW1e/pPJNc=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    changelog = "https://github.com/google/textfsm/releases/tag/${src.tag}";
    description = "Python module for parsing semi-structured text into python tables";
    mainProgram = "textfsm";
    homepage = "https://github.com/google/textfsm";
    license = lib.licenses.asl20;
    maintainers = [ ];
  };
}