nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.05 62 lines 1.2 kB view raw
1{ lib, stdenv 2, buildPythonApplication 3, fetchPypi 4, isPy3k 5, cli-helpers 6, click 7, configobj 8, humanize 9, prompt_toolkit 10, psycopg2 11, pygments 12, sqlparse 13, pgspecial 14, setproctitle 15, keyring 16, pendulum 17, pytestCheckHook 18, mock 19}: 20 21buildPythonApplication rec { 22 pname = "pgcli"; 23 version = "3.1.0"; 24 25 disabled = !isPy3k; 26 27 src = fetchPypi { 28 inherit pname version; 29 sha256 = "d5b2d803f7e4e7fe679306a000bde5d14d15ec590ddd108f3dc4c0ecad169d2b"; 30 }; 31 32 propagatedBuildInputs = [ 33 cli-helpers 34 click 35 configobj 36 humanize 37 prompt_toolkit 38 psycopg2 39 pygments 40 sqlparse 41 pgspecial 42 setproctitle 43 keyring 44 pendulum 45 ]; 46 47 checkInputs = [ pytestCheckHook mock ]; 48 49 disabledTests = lib.optionals stdenv.isDarwin [ "test_application_name_db_uri" ]; 50 51 meta = with lib; { 52 description = "Command-line interface for PostgreSQL"; 53 longDescription = '' 54 Rich command-line interface for PostgreSQL with auto-completion and 55 syntax highlighting. 56 ''; 57 homepage = "https://pgcli.com"; 58 changelog = "https://github.com/dbcli/pgcli/blob/v${version}/changelog.rst"; 59 license = licenses.bsd3; 60 maintainers = with maintainers; [ dywedir ]; 61 }; 62}