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";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.38.2";
|
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-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-0L/5i+m0rh1VjsZ0N2cshi+Nw951ASjMf5y6JxV53ko=";
|
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-08-04 22:07:22 +00:00
|
|
|
[ requests beautifulsoup4 future wcwidth urwid psycopg2 tomlkit ];
|
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";
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|