Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 58 lines 1.2 kB view raw
1{ 2 lib, 3 python3Packages, 4 fetchFromGitHub, 5}: 6 7python3Packages.buildPythonApplication rec { 8 pname = "litecli"; 9 version = "1.12.3"; 10 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "dbcli"; 15 repo = "litecli"; 16 rev = "v${version}"; 17 hash = "sha256-TPwzXfb4n6wTe6raQ5IowKdhGkKrf2pmSS2+Q03NKYk="; 18 }; 19 20 dependencies = 21 with python3Packages; 22 [ 23 cli-helpers 24 click 25 configobj 26 prompt-toolkit 27 pygments 28 sqlparse 29 ] 30 ++ cli-helpers.optional-dependencies.styles; 31 32 build-system = with python3Packages; [ 33 setuptools 34 ]; 35 36 nativeCheckInputs = with python3Packages; [ 37 pytestCheckHook 38 mock 39 ]; 40 41 pythonImportsCheck = [ "litecli" ]; 42 43 disabledTests = [ 44 "test_auto_escaped_col_names" 45 ]; 46 47 meta = { 48 description = "Command-line interface for SQLite"; 49 mainProgram = "litecli"; 50 longDescription = '' 51 A command-line client for SQLite databases that has auto-completion and syntax highlighting. 52 ''; 53 homepage = "https://litecli.com"; 54 changelog = "https://github.com/dbcli/litecli/blob/v${version}/CHANGELOG.md"; 55 license = lib.licenses.bsd3; 56 maintainers = with lib.maintainers; [ Scriptkiddi ]; 57 }; 58}