mycli: fix build with sqlparse 0.4.x (#106334)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
872cb2fc23
commit
40a7c98c1c
|
@ -1,6 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, python3
|
, python3
|
||||||
, glibcLocales
|
, glibcLocales
|
||||||
|
, fetchpatch
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with python3.pkgs;
|
with python3.pkgs;
|
||||||
|
@ -28,7 +29,21 @@ buildPythonApplication rec {
|
||||||
--ignore=mycli/packages/paramiko_stub/__init__.py
|
--ignore=mycli/packages/paramiko_stub/__init__.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
patches = [
|
||||||
|
# TODO: remove with next release (v1.22.3 or v1.23)
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/dbcli/mycli/commit/17f093d7b70ab2d9f3c6eababa041bf76f029aac.patch";
|
||||||
|
sha256 = "sha256-VwfbtzUtElV+ErH+NJb+3pRtSaF0yVK8gEWCvlzZNHI=";
|
||||||
|
excludes = [ "changelog.md" "mycli/AUTHORS" ];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace "sqlparse>=0.3.0,<0.4.0" "sqlparse"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
inherit version;
|
inherit version;
|
||||||
description = "Command-line interface for MySQL";
|
description = "Command-line interface for MySQL";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -36,7 +51,7 @@ buildPythonApplication rec {
|
||||||
syntax highlighting.
|
syntax highlighting.
|
||||||
'';
|
'';
|
||||||
homepage = "http://mycli.net";
|
homepage = "http://mycli.net";
|
||||||
license = lib.licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = [ lib.maintainers.jojosch ];
|
maintainers = with maintainers; [ jojosch ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue