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