2024-10-30 12:06:13 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
python3Packages,
|
|
|
|
nixosTests,
|
|
|
|
}:
|
2017-05-01 19:38:35 +00:00
|
|
|
|
2018-01-02 18:06:21 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2021-10-12 15:16:31 +00:00
|
|
|
pname = "toot";
|
2024-10-30 12:06:13 +00:00
|
|
|
version = "0.45.0";
|
|
|
|
pyproject = true;
|
2017-05-01 19:38:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-10-30 12:06:13 +00:00
|
|
|
owner = "ihabunek";
|
|
|
|
repo = "toot";
|
2022-11-21 19:38:44 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-10-30 12:06:13 +00:00
|
|
|
hash = "sha256-xBpqB81LSOq+eGVwEL6fAxBR8UXCduf5syzCdwydW4Q=";
|
2017-05-01 19:38:35 +00:00
|
|
|
};
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [ pytest ];
|
2017-09-06 16:01:27 +00:00
|
|
|
|
2024-10-30 12:06:13 +00:00
|
|
|
build-system = with python3Packages; [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = with python3Packages; [
|
|
|
|
requests
|
|
|
|
beautifulsoup4
|
|
|
|
wcwidth
|
|
|
|
urwid
|
|
|
|
urwidgets
|
|
|
|
tomlkit
|
|
|
|
click
|
|
|
|
pillow
|
|
|
|
term-image
|
2024-01-11 03:54:20 +00:00
|
|
|
];
|
2017-05-01 19:38:35 +00:00
|
|
|
|
2017-09-06 16:01:27 +00:00
|
|
|
checkPhase = ''
|
2024-10-30 12:06:13 +00:00
|
|
|
runHook preCheck
|
2017-09-06 16:01:27 +00:00
|
|
|
py.test
|
2024-10-30 12:06:13 +00:00
|
|
|
runHook postCheck
|
2017-09-06 16:01:27 +00:00
|
|
|
'';
|
|
|
|
|
2023-08-07 22:45:52 +00:00
|
|
|
passthru.tests.toot = nixosTests.pleroma;
|
|
|
|
|
2024-10-30 12:06:13 +00:00
|
|
|
meta = {
|
2017-05-01 19:38:35 +00:00
|
|
|
description = "Mastodon CLI interface";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "toot";
|
2024-10-30 12:06:13 +00:00
|
|
|
homepage = "https://github.com/ihabunek/toot";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
matthiasbeyer
|
|
|
|
aleksana
|
|
|
|
];
|
2017-05-01 19:38:35 +00:00
|
|
|
};
|
|
|
|
}
|