3
0
Fork 0
forked from mirrors/nixpkgs

mycli: move out of python-packages.nix and fix build

This commit is contained in:
Frederik Rietdijk 2017-09-06 16:52:41 +02:00
parent 79257d28e8
commit d45e554457
3 changed files with 40 additions and 33 deletions

View file

@ -0,0 +1,38 @@
{ lib
, python
}:
with python.pkgs;
buildPythonApplication rec {
pname = "mycli";
version = "1.6.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0qg4b62kizyb16kk0cvpk70bfs3gg4q4hj2b15nnc7a3gqqfp67j";
};
propagatedBuildInputs = [
pymysql configobj sqlparse prompt_toolkit pygments click pycrypto
];
postPatch = ''
substituteInPlace setup.py --replace "==" ">="
'';
# No tests in archive. Newer versions do include tests
doCheck = false;
meta = {
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;
};
}

View file

@ -3351,6 +3351,8 @@ with pkgs;
munge = callPackage ../tools/security/munge { };
mycli = callPackage ../tools/admin/mycli { };
mysql2pgsql = callPackage ../tools/misc/mysql2pgsql { };
mysqltuner = callPackage ../tools/misc/mysqltuner { };

View file

@ -15984,39 +15984,6 @@ in {
};
};
mycli = buildPythonPackage rec {
name = "mycli-${version}";
version = "1.6.0";
disabled = isPy35;
src = pkgs.fetchFromGitHub {
sha256 = "0vvl36gxawa0h36v119j47fdylj8k73ak6hv04s5cjqn5adcjjbh";
rev = "v${version}";
repo = "mycli";
owner = "dbcli";
};
propagatedBuildInputs = with self; [
pymysql configobj sqlparse prompt_toolkit pygments click pycrypto
];
postPatch = ''
substituteInPlace setup.py --replace "==" ">="
'';
meta = {
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 = licenses.bsd3;
};
};
pickleshare = buildPythonPackage rec {
version = "0.7.4";
name = "pickleshare-${version}";