2021-01-25 00:26:54 -08:00
|
|
|
{ lib, fetchFromGitHub, python3Packages }:
|
2017-05-01 12:38:35 -07:00
|
|
|
|
2018-01-02 10:06:21 -08:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-06-30 10:45:19 -07:00
|
|
|
version = "0.27.0";
|
2017-05-01 12:38:35 -07:00
|
|
|
name = "toot-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ihabunek";
|
|
|
|
repo = "toot";
|
2019-09-08 16:38:31 -07:00
|
|
|
rev = version;
|
2020-06-30 10:45:19 -07:00
|
|
|
sha256 = "197g9lvwg8qnsf18kifcqdj3cpfdnxz9vay766rn9bi4nfz0s6j2";
|
2017-05-01 12:38:35 -07:00
|
|
|
};
|
|
|
|
|
2018-01-02 10:06:21 -08:00
|
|
|
checkInputs = with python3Packages; [ pytest ];
|
2017-09-06 09:01:27 -07:00
|
|
|
|
2018-01-02 10:06:21 -08:00
|
|
|
propagatedBuildInputs = with python3Packages;
|
2019-09-24 09:52:01 -07:00
|
|
|
[ requests beautifulsoup4 future wcwidth urwid ];
|
2017-05-01 12:38:35 -07:00
|
|
|
|
2017-09-06 09:01:27 -07:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2017-05-01 12:38:35 -07:00
|
|
|
description = "Mastodon CLI interface";
|
|
|
|
homepage = "https://github.com/ihabunek/toot";
|
2020-06-30 17:59:48 -07:00
|
|
|
license = licenses.gpl3;
|
2019-02-20 10:52:48 -08:00
|
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
2017-05-01 12:38:35 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|