Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pexpect 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "argcomplete"; 10 version = "2.1.1"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.7"; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-cuCDQIUtMlREWcDBmq0bSKosOpbejG5XQkVrT1OMpS8="; 18 }; 19 20 postPatch = '' 21 substituteInPlace setup.py \ 22 --replace '"coverage",' "" \ 23 --replace " + lint_require" "" 24 ''; 25 26 propagatedBuildInputs = [ 27 pexpect 28 ]; 29 30 # tries to build and install test packages which fails 31 doCheck = false; 32 33 pythonImportsCheck = [ 34 "argcomplete" 35 ]; 36 37 meta = with lib; { 38 description = "Bash tab completion for argparse"; 39 homepage = "https://kislyuk.github.io/argcomplete/"; 40 changelog = "https://github.com/kislyuk/argcomplete/blob/v${version}/Changes.rst"; 41 license = licenses.asl20; 42 maintainers = with maintainers; [ womfoo ]; 43 }; 44}