nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 52 lines 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytest-timeout 5, pytestCheckHook 6, pythonOlder 7, setuptools-scm 8, bashInteractive 9}: 10 11buildPythonPackage rec { 12 pname = "shtab"; 13 version = "1.5.4"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "iterative"; 20 repo = pname; 21 rev = "v${version}"; 22 hash = "sha256-MYLAQSz55913fOhRnH+Y9xugOdfO43gkavitazIgeqg="; 23 }; 24 25 SETUPTOOLS_SCM_PRETEND_VERSION = version; 26 27 nativeBuildInputs = [ 28 setuptools-scm 29 ]; 30 31 checkInputs = [ 32 bashInteractive 33 pytest-timeout 34 pytestCheckHook 35 ]; 36 37 postPatch = '' 38 substituteInPlace setup.cfg \ 39 --replace " --cov=shtab --cov-report=term-missing --cov-report=xml" "" 40 ''; 41 42 pythonImportsCheck = [ 43 "shtab" 44 ]; 45 46 meta = with lib; { 47 description = "Module for shell tab completion of Python CLI applications"; 48 homepage = "https://docs.iterative.ai/shtab/"; 49 license = licenses.asl20; 50 maintainers = with maintainers; [ fab ]; 51 }; 52}