1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, setuptools 6, setuptools-scm 7}: 8 9buildPythonPackage rec { 10 pname = "argcomplete"; 11 version = "3.1.6"; 12 pyproject = true; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchFromGitHub { 17 owner = "kislyuk"; 18 repo = pname; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-Akwa6dsf8w/Sw0ydUrqKEP5+dzHYX4hS8vcl7Gw4ePc="; 21 }; 22 23 SETUPTOOLS_SCM_PRETEND_VERSION = version; 24 25 nativeBuildInputs = [ 26 setuptools 27 setuptools-scm 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 changelog = "https://github.com/kislyuk/argcomplete/blob/v${version}/Changes.rst"; 39 description = "Bash tab completion for argparse"; 40 downloadPage = "https://github.com/kislyuk/argcomplete"; 41 homepage = "https://kislyuk.github.io/argcomplete/"; 42 license = licenses.asl20; 43 maintainers = with maintainers; [ womfoo ]; 44 }; 45}