nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 67 lines 1.1 kB view raw
1{ 2 lib, 3 python3, 4 fetchFromGitHub, 5 dbus, 6 signal-cli, 7 xclip, 8 testers, 9 scli, 10}: 11 12python3.pkgs.buildPythonApplication rec { 13 pname = "scli"; 14 version = "0.7.5"; 15 16 src = fetchFromGitHub { 17 owner = "isamert"; 18 repo = "scli"; 19 tag = "v${version}"; 20 sha256 = "sha256-pp3uVABsncXXL2PZvTymHPKGAFvB24tnX+3K+C0VW8g="; 21 }; 22 23 propagatedBuildInputs = with python3.pkgs; [ 24 pyqrcode 25 urwid 26 urwid-readline 27 ]; 28 pyproject = false; 29 30 dontBuild = true; 31 32 installPhase = '' 33 runHook preInstall 34 35 patchShebangs scli 36 install -Dm555 scli -t $out/bin 37 echo "v$version" > $out/bin/VERSION 38 39 runHook postInstall 40 ''; 41 42 makeWrapperArgs = [ 43 "--prefix" 44 "PATH" 45 ":" 46 (lib.makeBinPath [ 47 dbus 48 signal-cli 49 xclip 50 ]) 51 ]; 52 53 passthru.tests = { 54 version = testers.testVersion { 55 package = scli; 56 command = "HOME=$(mktemp -d) scli --version"; 57 }; 58 }; 59 60 meta = { 61 description = "Simple terminal user interface for Signal"; 62 mainProgram = "scli"; 63 homepage = "https://github.com/isamert/scli"; 64 license = lib.licenses.gpl3Only; 65 maintainers = [ ]; 66 }; 67}