16 , pyinstaller-versionfile
22 buildPythonPackage rec {
26 disabled = pythonOlder "3.7";
29 inherit pname version;
30 sha256 = "sha256-nsQJWDzSzSc1WRk5TBl/E7Mpfk8wGD1CsETAWILKxCM=";
33 propagatedBuildInputs = [ ftfy appdirs requests setuptools-scm types-mock types-appdirs argparse doit pyinstaller-versionfile types-requests types-setuptools tableauserverclient ];
35 nativeCheckInputs = [ pytestCheckHook mock ];
37 # Remove an unneeded dependency that can't be resolved
39 sed -i "/'argparse',/d" pyproject.toml
42 # Create a "tabcmd" executable
44 # Create a directory for our wrapped binary.
47 cp -r build/lib/tabcmd/__main__.py $out/bin/
49 # Create a 'tabcmd' script with python3 shebang
50 echo "#!${python3}/bin/python3" > $out/bin/tabcmd
52 # Append __main__.py contents
53 cat $out/bin/__main__.py >> $out/bin/tabcmd
56 chmod +x $out/bin/tabcmd
61 description = "A command line client for working with Tableau Server.";
62 homepage = "https://pypi.org/project/tabcmd/";
63 license = lib.licenses.mit;
64 maintainers = with lib.maintainers; [ ];