mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
Revert "mycli: disable checking to fix build" (#349914)
This commit is contained in:
commit
09fdf15eb7
@ -1,57 +1,56 @@
|
||||
{ lib
|
||||
, python3
|
||||
, fetchPypi
|
||||
, glibcLocales
|
||||
{
|
||||
fetchPypi,
|
||||
lib,
|
||||
python3Packages,
|
||||
}:
|
||||
|
||||
with python3.pkgs;
|
||||
|
||||
buildPythonApplication rec {
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "mycli";
|
||||
version = "1.27.2";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-0R2k5hRkAJbqgGZEPXWUb48oFxTKMKiQZckf3F+VC3I=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cli-helpers
|
||||
click
|
||||
configobj
|
||||
importlib-resources
|
||||
paramiko
|
||||
prompt-toolkit
|
||||
pyaes
|
||||
pycrypto
|
||||
pygments
|
||||
pymysql
|
||||
pyperclip
|
||||
sqlglot
|
||||
sqlparse
|
||||
pythonRelaxDeps = [
|
||||
"sqlparse"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook glibcLocales ];
|
||||
build-system = with python3Packages; [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies =
|
||||
with python3Packages;
|
||||
[
|
||||
cli-helpers
|
||||
click
|
||||
configobj
|
||||
cryptography
|
||||
paramiko
|
||||
prompt-toolkit
|
||||
pyaes
|
||||
pygments
|
||||
pymysql
|
||||
pyperclip
|
||||
sqlglot
|
||||
sqlparse
|
||||
]
|
||||
++ cli-helpers.optional-dependencies.styles;
|
||||
|
||||
nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=.
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
export HOME="$(mktemp -d)"
|
||||
'';
|
||||
|
||||
# fails at checkphase due to the below test paths
|
||||
# disabling it specifically does not work, so we disable checking altogether
|
||||
doCheck = false;
|
||||
disabledTestPaths = [
|
||||
"mycli/packages/paramiko_stub/__init__.py"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "cryptography == 36.0.2" "cryptography"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
inherit version;
|
||||
meta = {
|
||||
description = "Command-line interface for MySQL";
|
||||
mainProgram = "mycli";
|
||||
longDescription = ''
|
||||
@ -59,7 +58,7 @@ buildPythonApplication rec {
|
||||
syntax highlighting.
|
||||
'';
|
||||
homepage = "http://mycli.net";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ jojosch ];
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ jojosch ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user