Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 39 lines 912 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, fetchpatch 5, six 6, future 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "textfsm"; 12 version = "1.1.1"; 13 14 src = fetchFromGitHub { 15 owner = "google"; 16 repo = pname; 17 rev = "v${version}"; 18 sha256 = "0fq2hphd89hns11nh0yifcp6brg6yy4n4hbvfk6avbjd7s40789a"; 19 }; 20 21 patches = [ 22 (fetchpatch { 23 # remove pytest-runner dependency 24 url = "https://github.com/google/textfsm/commit/212db75fea4a79aca0f8f85a78954ffbc5667096.patch"; 25 sha256 = "0n6qh3sz9wy5gdpq9jjxx8firis48ypr20yacs5bqri59sziwjp0"; 26 }) 27 ]; 28 29 propagatedBuildInputs = [ six future ]; 30 31 checkInputs = [ pytestCheckHook ]; 32 33 meta = with lib; { 34 description = "Python module for parsing semi-structured text into python tables"; 35 homepage = "https://github.com/google/textfsm"; 36 license = licenses.asl20; 37 maintainers = with maintainers; [ hexa ]; 38 }; 39}