2023-10-09 19:29:22 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages, nixosTests }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
2021-10-14 00:43:12 +00:00
|
|
|
pname = "toot";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.42.0";
|
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}";
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-FxA/loJzb/DBI1vWC71IFqdFcwjwIezhBJCGNeBzRoU=";
|
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;
|
2024-01-13 08:15:51 +00:00
|
|
|
[
|
|
|
|
requests beautifulsoup4 future wcwidth
|
|
|
|
urwid urwidgets psycopg2 tomlkit click
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
passthru.tests.toot = nixosTests.pleroma;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Mastodon CLI interface";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "toot";
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|