Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

python312Packages.tabcmd: refactor

- add missing input
- add pythonImportsCheck
- report argparse issue upstream

+18 -9
+18 -9
pkgs/development/python-modules/tabcmd/default.nix
··· 7 7 , ftfy 8 8 , mock 9 9 , pyinstaller-versionfile 10 + , pytest-order 10 11 , pytestCheckHook 11 12 , python3 12 13 , pythonOlder 13 - , requests 14 14 , pythonRelaxDepsHook 15 + , requests 15 16 , setuptools 16 17 , setuptools-scm 17 18 , tableauserverclient ··· 34 35 hash = "sha256-f9zoYeb4RzcCtgcCYYvvuCuFrjqpP3Fhv38bUWH24+g="; 35 36 }; 36 37 38 + prePatch = '' 39 + # Remove an unneeded dependency that can't be resolved 40 + # https://github.com/tableau/tabcmd/pull/282 41 + sed -i "/'argparse',/d" pyproject.toml 42 + ''; 43 + 37 44 pythonRelaxDeps = [ 38 45 "tableauserverclient" 39 46 "urllib3" ··· 41 48 42 49 nativeBuildInputs = [ 43 50 pythonRelaxDepsHook 51 + ]; 52 + 53 + build-system = [ 44 54 setuptools 45 55 ]; 46 56 47 - propagatedBuildInputs = [ 57 + dependencies = [ 48 58 appdirs 49 59 argparse 50 60 doit ··· 62 72 63 73 nativeCheckInputs = [ 64 74 mock 75 + pytest-order 65 76 pytestCheckHook 66 77 ]; 67 - 68 - # Remove an unneeded dependency that can't be resolved 69 - prePatch = '' 70 - sed -i "/'argparse',/d" pyproject.toml 71 - ''; 72 78 73 79 # Create a "tabcmd" executable 74 80 postInstall = '' ··· 87 93 chmod +x $out/bin/tabcmd 88 94 ''; 89 95 96 + pythonImportsCheck = [ 97 + "tabcmd" 98 + ]; 90 99 91 100 meta = with lib; { 92 - description = "A command line client for working with Tableau Server."; 93 - mainProgram = "tabcmd"; 101 + description = "A command line client for working with Tableau Server"; 94 102 homepage = "https://github.com/tableau/tabcmd"; 95 103 changelog = "https://github.com/tableau/tabcmd/releases/tag/v${version}"; 96 104 license = licenses.mit; 97 105 maintainers = with maintainers; [ ]; 106 + mainProgram = "tabcmd"; 98 107 }; 99 108 }