mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
37 lines
840 B
Nix
37 lines
840 B
Nix
{ lib, fetchFromGitHub, python3Packages, nixosTests }:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "toot";
|
|
version = "0.42.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ihabunek";
|
|
repo = "toot";
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-FxA/loJzb/DBI1vWC71IFqdFcwjwIezhBJCGNeBzRoU=";
|
|
};
|
|
|
|
nativeCheckInputs = with python3Packages; [ pytest ];
|
|
|
|
propagatedBuildInputs = with python3Packages;
|
|
[
|
|
requests beautifulsoup4 future wcwidth
|
|
urwid urwidgets psycopg2 tomlkit click
|
|
];
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
passthru.tests.toot = nixosTests.pleroma;
|
|
|
|
meta = with lib; {
|
|
description = "Mastodon CLI interface";
|
|
mainProgram = "toot";
|
|
homepage = "https://github.com/ihabunek/toot";
|
|
license = licenses.gpl3;
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
|
};
|
|
|
|
}
|