Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 six, 6 future, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "textfsm"; 12 version = "1.1.3"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "google"; 17 repo = pname; 18 rev = "v${version}"; 19 hash = "sha256-IHgKG8v0X+LSK6purWBdwDnI/BCs5XA12ZJixuqqXWg="; 20 }; 21 22 # upstream forgot to update the release version 23 postPatch = '' 24 substituteInPlace textfsm/__init__.py \ 25 --replace "1.1.2" "1.1.3" 26 ''; 27 28 propagatedBuildInputs = [ 29 six 30 future 31 ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 meta = with lib; { 36 description = "Python module for parsing semi-structured text into python tables"; 37 mainProgram = "textfsm"; 38 homepage = "https://github.com/google/textfsm"; 39 license = licenses.asl20; 40 maintainers = [ ]; 41 }; 42}