Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / toot / default.nix
blobe74cb435e212b965896eca5a4e8cb5ef4a9ec1bb
1 { lib, fetchFromGitHub, python3Packages, nixosTests }:
3 python3Packages.buildPythonApplication rec {
4   pname = "toot";
5   version = "0.38.2";
7   src = fetchFromGitHub {
8     owner  = "ihabunek";
9     repo   = "toot";
10     rev = "refs/tags/${version}";
11     sha256 = "sha256-0L/5i+m0rh1VjsZ0N2cshi+Nw951ASjMf5y6JxV53ko=";
12   };
14   nativeCheckInputs = with python3Packages; [ pytest ];
16   propagatedBuildInputs = with python3Packages;
17     [ requests beautifulsoup4 future wcwidth urwid psycopg2 tomlkit ];
19   checkPhase = ''
20     py.test
21   '';
23   passthru.tests.toot = nixosTests.pleroma;
25   meta = with lib; {
26     description = "Mastodon CLI interface";
27     homepage    = "https://github.com/ihabunek/toot";
28     license     = licenses.gpl3;
29     maintainers = [ maintainers.matthiasbeyer ];
30   };