nixpkgs/pkgs/by-name/to/toot/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.0 KiB
Nix
Raw Normal View History

{
lib,
fetchFromGitHub,
python3Packages,
nixosTests,
}:
2017-05-01 19:38:35 +00:00
2018-01-02 18:06:21 +00:00
python3Packages.buildPythonApplication rec {
pname = "toot";
version = "0.45.0";
pyproject = true;
2017-05-01 19:38:35 +00:00
src = fetchFromGitHub {
owner = "ihabunek";
repo = "toot";
2022-11-21 19:38:44 +00:00
rev = "refs/tags/${version}";
hash = "sha256-xBpqB81LSOq+eGVwEL6fAxBR8UXCduf5syzCdwydW4Q=";
2017-05-01 19:38:35 +00:00
};
nativeCheckInputs = with python3Packages; [ pytest ];
2017-09-06 16:01:27 +00:00
build-system = with python3Packages; [
setuptools
setuptools-scm
];
dependencies = with python3Packages; [
requests
beautifulsoup4
wcwidth
urwid
urwidgets
tomlkit
click
pillow
term-image
2024-01-11 03:54:20 +00:00
];
2017-05-01 19:38:35 +00:00
2017-09-06 16:01:27 +00:00
checkPhase = ''
runHook preCheck
2017-09-06 16:01:27 +00:00
py.test
runHook postCheck
2017-09-06 16:01:27 +00:00
'';
passthru.tests.toot = nixosTests.pleroma;
meta = {
2017-05-01 19:38:35 +00:00
description = "Mastodon CLI interface";
mainProgram = "toot";
homepage = "https://github.com/ihabunek/toot";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
matthiasbeyer
aleksana
];
2017-05-01 19:38:35 +00:00
};
}