Skip to content

Commit

Permalink
Showing 1 changed file with 34 additions and 14 deletions.
48 changes: 34 additions & 14 deletions pkgs/by-name/to/toot/package.nix
Original file line number Diff line number Diff line change
@@ -1,36 +1,56 @@
{ lib, fetchFromGitHub, python3Packages, nixosTests }:
{
lib,
fetchFromGitHub,
python3Packages,
nixosTests,
}:

python3Packages.buildPythonApplication rec {
pname = "toot";
version = "0.42.0";
version = "0.45.0";
pyproject = true;

src = fetchFromGitHub {
owner = "ihabunek";
repo = "toot";
owner = "ihabunek";
repo = "toot";
rev = "refs/tags/${version}";
sha256 = "sha256-FxA/loJzb/DBI1vWC71IFqdFcwjwIezhBJCGNeBzRoU=";
hash = "sha256-xBpqB81LSOq+eGVwEL6fAxBR8UXCduf5syzCdwydW4Q=";
};

nativeCheckInputs = with python3Packages; [ pytest ];

propagatedBuildInputs = with python3Packages;
[
requests beautifulsoup4 future wcwidth
urwid urwidgets psycopg2 tomlkit click
build-system = with python3Packages; [
setuptools
setuptools_scm
];

dependencies = with python3Packages; [
requests
beautifulsoup4
wcwidth
urwid
urwidgets
tomlkit
click
pillow
];

checkPhase = ''
runHook preCheck
py.test
runHook postCheck
'';

passthru.tests.toot = nixosTests.pleroma;

meta = with lib; {
meta = {
description = "Mastodon CLI interface";
mainProgram = "toot";
homepage = "https://github.com/ihabunek/toot";
license = licenses.gpl3;
maintainers = [ maintainers.matthiasbeyer ];
homepage = "https://github.com/ihabunek/toot";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
matthiasbeyer
aleksana
];
};

}

0 comments on commit 00378fc

Please sign in to comment.