mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 19:33:03 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
32 lines
726 B
Nix
32 lines
726 B
Nix
{ lib, fetchFromGitHub, python3Packages }:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "toot";
|
|
version = "0.33.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ihabunek";
|
|
repo = "toot";
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-qZk42zGHWpeN5rZPFw7xAmDIvhPzqTePU3If+p/L98c=";
|
|
};
|
|
|
|
nativeCheckInputs = with python3Packages; [ pytest ];
|
|
|
|
propagatedBuildInputs = with python3Packages;
|
|
[ requests beautifulsoup4 future wcwidth urwid psycopg2 ];
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Mastodon CLI interface";
|
|
homepage = "https://github.com/ihabunek/toot";
|
|
license = licenses.gpl3;
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
|
};
|
|
|
|
}
|
|
|