depot/third_party/nixpkgs/pkgs/applications/misc/toot/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

32 lines
790 B
Nix

{ lib, fetchFromGitHub, python3Packages, nixosTests }:
python3Packages.buildPythonApplication rec {
pname = "toot";
version = "0.38.2";
src = fetchFromGitHub {
owner = "ihabunek";
repo = "toot";
rev = "refs/tags/${version}";
sha256 = "sha256-0L/5i+m0rh1VjsZ0N2cshi+Nw951ASjMf5y6JxV53ko=";
};
nativeCheckInputs = with python3Packages; [ pytest ];
propagatedBuildInputs = with python3Packages;
[ requests beautifulsoup4 future wcwidth urwid psycopg2 tomlkit ];
checkPhase = ''
py.test
'';
passthru.tests.toot = nixosTests.pleroma;
meta = with lib; {
description = "Mastodon CLI interface";
homepage = "https://github.com/ihabunek/toot";
license = licenses.gpl3;
maintainers = [ maintainers.matthiasbeyer ];
};
}