evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / to / toot / package.nix
blob0f1b5ce9ed1b1f9b4024b58a3416b993f4b0d257
2   lib,
3   fetchFromGitHub,
4   python3Packages,
5   nixosTests,
6 }:
8 python3Packages.buildPythonApplication rec {
9   pname = "toot";
10   version = "0.45.0";
11   pyproject = true;
13   src = fetchFromGitHub {
14     owner = "ihabunek";
15     repo = "toot";
16     rev = "refs/tags/${version}";
17     hash = "sha256-xBpqB81LSOq+eGVwEL6fAxBR8UXCduf5syzCdwydW4Q=";
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     license = lib.licenses.gpl3Only;
52     maintainers = with lib.maintainers; [
53       matthiasbeyer
54       aleksana
55     ];
56   };