btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / my / mycli / package.nix
blob41920ba2b280f6ba6555066acf2eb0b760f3a165
2   fetchPypi,
3   lib,
4   python3Packages,
5 }:
7 python3Packages.buildPythonApplication rec {
8   pname = "mycli";
9   version = "1.27.2";
10   pyproject = true;
12   src = fetchPypi {
13     inherit pname version;
14     hash = "sha256-0R2k5hRkAJbqgGZEPXWUb48oFxTKMKiQZckf3F+VC3I=";
15   };
17   pythonRelaxDeps = [
18     "sqlparse"
19   ];
21   build-system = with python3Packages; [
22     setuptools
23   ];
25   dependencies =
26     with python3Packages;
27     [
28       cli-helpers
29       click
30       configobj
31       cryptography
32       paramiko
33       prompt-toolkit
34       pyaes
35       pygments
36       pymysql
37       pyperclip
38       sqlglot
39       sqlparse
40     ]
41     ++ cli-helpers.optional-dependencies.styles;
43   nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
45   preCheck = ''
46     export HOME="$(mktemp -d)"
47   '';
49   disabledTestPaths = [
50     "mycli/packages/paramiko_stub/__init__.py"
51   ];
53   meta = {
54     description = "Command-line interface for MySQL";
55     mainProgram = "mycli";
56     longDescription = ''
57       Rich command-line interface for MySQL with auto-completion and
58       syntax highlighting.
59     '';
60     homepage = "http://mycli.net";
61     license = lib.licenses.bsd3;
62     maintainers = with lib.maintainers; [ jojosch ];
63   };