nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 47 lines 962 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest-timeout, 6 pytestCheckHook, 7 pytest-cov-stub, 8 setuptools, 9 setuptools-scm, 10 bashInteractive, 11}: 12 13buildPythonPackage rec { 14 pname = "shtab"; 15 version = "1.8.0"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "iterative"; 20 repo = "shtab"; 21 tag = "v${version}"; 22 hash = "sha256-VK3+JLb9Lh+YHixMa1Hjm5bYJ9vSmMPIkN6c3DeHDo8="; 23 }; 24 25 nativeBuildInputs = [ 26 setuptools 27 setuptools-scm 28 ]; 29 30 nativeCheckInputs = [ 31 bashInteractive 32 pytest-timeout 33 pytestCheckHook 34 pytest-cov-stub 35 ]; 36 37 pythonImportsCheck = [ "shtab" ]; 38 39 meta = { 40 description = "Module for shell tab completion of Python CLI applications"; 41 mainProgram = "shtab"; 42 homepage = "https://docs.iterative.ai/shtab/"; 43 changelog = "https://github.com/iterative/shtab/releases/tag/${src.tag}"; 44 license = lib.licenses.asl20; 45 maintainers = with lib.maintainers; [ fab ]; 46 }; 47}