Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, setuptools 6, setuptools-scm 7}: 8 9buildPythonPackage rec { 10 pname = "argcomplete"; 11 version = "3.1.1"; 12 format = "pyproject"; 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-N1Us/dpF/y638qIuwTzBiuv4vXfBMtWxmQnMBxNTUuc="; 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 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}