emacsPackages.lsp-bridge: 0-unstable-2025-01-11 -> 0-unstable-2025-01-22 (#376531)
[NixPkgs.git] / pkgs / development / python-modules / shtab / default.nix
blobf966690fff9bf0cfd9b0da0cefff710abef29d9f
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytest-timeout,
6   pytestCheckHook,
7   pythonOlder,
8   setuptools,
9   setuptools-scm,
10   bashInteractive,
13 buildPythonPackage rec {
14   pname = "shtab";
15   version = "1.7.1";
16   pyproject = true;
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "iterative";
22     repo = "shtab";
23     tag = "v${version}";
24     hash = "sha256-8bAwLSdJCzFw5Vf9CKBrH5zOoojeXds7aIRncl+sLBI=";
25   };
27   postPatch = ''
28     substituteInPlace pyproject.toml \
29       --replace-fail " --cov=shtab --cov-report=term-missing --cov-report=xml" ""
30   '';
32   nativeBuildInputs = [
33     setuptools
34     setuptools-scm
35   ];
37   nativeCheckInputs = [
38     bashInteractive
39     pytest-timeout
40     pytestCheckHook
41   ];
43   pythonImportsCheck = [ "shtab" ];
45   meta = with lib; {
46     description = "Module for shell tab completion of Python CLI applications";
47     mainProgram = "shtab";
48     homepage = "https://docs.iterative.ai/shtab/";
49     changelog = "https://github.com/iterative/shtab/releases/tag/v${version}";
50     license = licenses.asl20;
51     maintainers = with maintainers; [ fab ];
52   };