Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 42 lines 823 B view raw
1{ lib 2, python3 3, glibcLocales 4}: 5 6with python3.pkgs; 7 8buildPythonApplication rec { 9 pname = "mycli"; 10 version = "1.19.0"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "0x5vzl4vvirqy03fnjwkamhzrqkknlajamwz1rmbnqh4bfmijh9m"; 15 }; 16 17 patches = [ ./fix-tests.patch ]; 18 19 propagatedBuildInputs = [ 20 pymysql configobj sqlparse prompt_toolkit pygments click pycrypto cli-helpers 21 ]; 22 23 checkInputs = [ pytest mock glibcLocales ]; 24 25 checkPhase = '' 26 export HOME=. 27 export LC_ALL="en_US.UTF-8" 28 29 py.test 30 ''; 31 32 meta = { 33 inherit version; 34 description = "Command-line interface for MySQL"; 35 longDescription = '' 36 Rich command-line interface for MySQL with auto-completion and 37 syntax highlighting. 38 ''; 39 homepage = http://mycli.net; 40 license = lib.licenses.bsd3; 41 }; 42}