Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
pythonPackages.textfsm: init at 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt authored and jonringer committed Sep 20, 2020
1 parent 4637721 commit 6898bcf
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
39 changes: 39 additions & 0 deletions pkgs/development/python-modules/textfsm/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, six
, future
, pytestCheckHook
}:

buildPythonPackage rec {
pname = "textfsm";
version = "1.1.1";

src = fetchFromGitHub {
owner = "google";
repo = pname;
rev = "v${version}";
sha256 = "0fq2hphd89hns11nh0yifcp6brg6yy4n4hbvfk6avbjd7s40789a";
};

patches = [
(fetchpatch {
# remove pytest-runner dependency
url = "https://github.com/google/textfsm/commit/212db75fea4a79aca0f8f85a78954ffbc5667096.patch";
sha256 = "0n6qh3sz9wy5gdpq9jjxx8firis48ypr20yacs5bqri59sziwjp0";
})
];

propagatedBuildInputs = [ six future ];

checkInputs = [ pytestCheckHook ];

meta = with lib; {
description = "Python module for parsing semi-structured text into python tables";
homepage = "https://github.com/google/textfsm";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6921,6 +6921,8 @@ in {

testfixtures = callPackage ../development/python-modules/testfixtures { };

textfsm = callPackage ../development/python-modules/textfsm { };

testpath = callPackage ../development/python-modules/testpath { };

testrepository = callPackage ../development/python-modules/testrepository { };
Expand Down

0 comments on commit 6898bcf

Please sign in to comment.