Skip to content

Commit

Permalink
mycli: fix build with sqlparse 0.4.x (#106334)
Browse files Browse the repository at this point in the history
Co-authored-by: Sandro <[email protected]>
  • Loading branch information
jojosch and SuperSandro2000 authored Dec 9, 2020
1 parent 872cb2f commit 40a7c98
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions pkgs/tools/admin/mycli/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, python3
, glibcLocales
, fetchpatch
}:

with python3.pkgs;
Expand Down Expand Up @@ -28,15 +29,29 @@ buildPythonApplication rec {
--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;
description = "Command-line interface for MySQL";
longDescription = ''
Rich command-line interface for MySQL with auto-completion and
syntax highlighting.
'';
homepage = "http://mycli.net";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.jojosch ];
license = licenses.bsd3;
maintainers = with maintainers; [ jojosch ];
};
}

0 comments on commit 40a7c98

Please sign in to comment.