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