mycli: 1.6.0 -> 1.17.0

This commit is contained in:
Wael M. Nasreddine 2018-08-06 23:40:56 -07:00
parent 16cfc2a602
commit e9cb147a37
No known key found for this signature in database
GPG Key ID: 82AE0A31B33CEFCF

View File

@ -1,28 +1,31 @@
{ lib
, python
, python3
, glibcLocales
}:
with python.pkgs;
with python3.pkgs;
buildPythonApplication rec {
pname = "mycli";
version = "1.6.0";
version = "1.17.0";
src = fetchPypi {
inherit pname version;
sha256 = "0qg4b62kizyb16kk0cvpk70bfs3gg4q4hj2b15nnc7a3gqqfp67j";
sha256 = "11d3ssjifms6bid77jk06zl5wl3srihijmv5kggxa0w2l59y8h9m";
};
propagatedBuildInputs = [
pymysql configobj sqlparse prompt_toolkit pygments click pycrypto
pymysql configobj sqlparse prompt_toolkit pygments click pycrypto cli-helpers
];
postPatch = ''
substituteInPlace setup.py --replace "==" ">="
'';
checkInputs = [ pytest mock glibcLocales ];
# No tests in archive. Newer versions do include tests
doCheck = false;
checkPhase = ''
export HOME=.
export LC_ALL="en_US.UTF-8"
py.test
'';
meta = {
inherit version;