1{ lib 2, fetchFromGitHub 3, buildPythonPackage 4, pyparsing 5, six 6, urwid 7}: 8 9buildPythonPackage rec { 10 pname = "configshell"; 11 version = "1.1.29"; 12 13 src = fetchFromGitHub { 14 owner = "open-iscsi"; 15 repo = "${pname}-fb"; 16 rev = "v${version}"; 17 sha256 = "0mjj3c9335sph8rhwww7j4zvhyk896fbmx887vibm89w3jpvjjr9"; 18 }; 19 20 propagatedBuildInputs = [ 21 pyparsing 22 six 23 urwid 24 ]; 25 26 postPatch = '' 27 substituteInPlace setup.py \ 28 --replace "pyparsing >=2.0.2,<3.0" "pyparsing >=2.0.2" 29 ''; 30 31 # Module has no tests 32 doCheck = false; 33 34 pythonImportsCheck = [ 35 "configshell" 36 ]; 37 38 meta = with lib; { 39 description = "Python library for building configuration shells"; 40 homepage = "https://github.com/open-iscsi/configshell-fb"; 41 license = licenses.asl20; 42 maintainers = with maintainers; [ ]; 43 }; 44}