fluffychat: 1.22.1 -> 1.23.0 (#364091)
[NixPkgs.git] / pkgs / by-name / to / toot / package.nix
blob96506125c94a1831e564d18ff1438467016ccbda
2   lib,
3   fetchFromGitHub,
4   python3Packages,
5   nixosTests,
6 }:
8 python3Packages.buildPythonApplication rec {
9   pname = "toot";
10   version = "0.47.1";
11   pyproject = true;
13   src = fetchFromGitHub {
14     owner = "ihabunek";
15     repo = "toot";
16     tag = version;
17     hash = "sha256-cdlLZL3XZDgEXbac3Kgm9o61SOpoZzWD6C1DDwj6eNo=";
18   };
20   nativeCheckInputs = with python3Packages; [ pytest ];
22   build-system = with python3Packages; [
23     setuptools
24     setuptools-scm
25   ];
27   dependencies = with python3Packages; [
28     requests
29     beautifulsoup4
30     wcwidth
31     urwid
32     urwidgets
33     tomlkit
34     click
35     pillow
36     term-image
37   ];
39   checkPhase = ''
40     runHook preCheck
41     py.test
42     runHook postCheck
43   '';
45   passthru.tests.toot = nixosTests.pleroma;
47   meta = {
48     description = "Mastodon CLI interface";
49     mainProgram = "toot";
50     homepage = "https://github.com/ihabunek/toot";
51     changelog = "https://github.com/ihabunek/toot/blob/refs/tags/${version}/CHANGELOG.md";
52     license = lib.licenses.gpl3Only;
53     maintainers = with lib.maintainers; [
54       matthiasbeyer
55       aleksana
56     ];
57   };