nixpkgs/pkgs/applications/misc/toot/default.nix
Tom Doggett 56183fb2dd toot: 0.22.0 -> 0.24.0
Updating Toot to version 0.24.0 which includes the new TUI along with some encoding fixes since its original introduction in 0.23.0.  The TUI uses the `urwid` package.
2019-09-27 13:52:49 +09:00

31 lines
722 B
Nix

{ stdenv, fetchFromGitHub, python3Packages }:
python3Packages.buildPythonApplication rec {
version = "0.24.0";
name = "toot-${version}";
src = fetchFromGitHub {
owner = "ihabunek";
repo = "toot";
rev = version;
sha256 = "1szpmkxc1lqfphicfcj0z7b1nq97xmb4ppwf806p8w0fxj1shil3";
};
checkInputs = with python3Packages; [ pytest ];
propagatedBuildInputs = with python3Packages;
[ requests beautifulsoup4 future wcwidth urwid ];
checkPhase = ''
py.test
'';
meta = with stdenv.lib; {
description = "Mastodon CLI interface";
homepage = "https://github.com/ihabunek/toot";
license = licenses.mit;
maintainers = [ maintainers.matthiasbeyer ];
};
}