nixpkgs-suyu/pkgs/applications/misc/toot/default.nix

32 lines
709 B
Nix
Raw Normal View History

2017-05-01 21:38:35 +02:00
{ stdenv, fetchFromGitHub, pythonPackages }:
pythonPackages.buildPythonApplication rec {
2017-09-06 18:01:27 +02:00
version = "0.13.0";
2017-05-01 21:38:35 +02:00
name = "toot-${version}";
src = fetchFromGitHub {
owner = "ihabunek";
repo = "toot";
rev = "${version}";
2017-09-06 18:01:27 +02:00
sha256 = "0gbsq43qv5qg4avx7czs57k40m8lzh8f1z5yizqqc7r02p2sacnc";
2017-05-01 21:38:35 +02:00
};
2017-09-06 18:01:27 +02:00
checkInputs = with pythonPackages; [ pytest ];
2017-05-01 21:38:35 +02:00
propagatedBuildInputs = with pythonPackages;
[ requests beautifulsoup4 future ];
2017-05-01 21:38:35 +02:00
2017-09-06 18:01:27 +02:00
checkPhase = ''
py.test
'';
2017-05-01 21:38:35 +02:00
meta = with stdenv.lib; {
description = "Mastodon CLI interface";
homepage = "https://github.com/ihabunek/toot";
license = licenses.mit;
maintainers = [ maintainers.matthiasbeyer ];
};
}