2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
2021-10-14 00:43:12 +00:00
|
|
|
pname = "toot";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "0.34.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ihabunek";
|
|
|
|
repo = "toot";
|
2022-11-27 09:42:12 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-03-04 12:14:45 +00:00
|
|
|
sha256 = "sha256-5LTd3FPodYxMm4zZJsAfO0O1Y0AXUxaz+ZtEh6b5Etw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [ pytest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages;
|
2023-01-20 10:41:00 +00:00
|
|
|
[ requests beautifulsoup4 future wcwidth urwid psycopg2 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Mastodon CLI interface";
|
|
|
|
homepage = "https://github.com/ihabunek/toot";
|
2020-07-18 16:06:22 +00:00
|
|
|
license = licenses.gpl3;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|