mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
30d1f10b2d
Diff: https://github.com/iterative/shtab/compare/refs/tags/v1.5.8...v1.6.0 Changelog: https://github.com/iterative/shtab/releases/tag/v1.6.0
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytest-timeout
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools-scm
|
|
, bashInteractive
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "shtab";
|
|
version = "1.6.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iterative";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-CR6fUDLjwUu2pD/1crUDPjU22evybUAfBA/YF/zf1mk=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
bashInteractive
|
|
pytest-timeout
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg \
|
|
--replace " --cov=shtab --cov-report=term-missing --cov-report=xml" ""
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"shtab"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Module for shell tab completion of Python CLI applications";
|
|
homepage = "https://docs.iterative.ai/shtab/";
|
|
changelog = "https://github.com/iterative/shtab/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|