2017-05-01 19:38:35 +00:00
|
|
|
{ stdenv, fetchFromGitHub, pythonPackages }:
|
|
|
|
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
2017-09-13 15:55:38 +00:00
|
|
|
version = "0.15.0";
|
2017-05-01 19:38:35 +00:00
|
|
|
name = "toot-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ihabunek";
|
|
|
|
repo = "toot";
|
|
|
|
rev = "${version}";
|
2017-09-13 15:55:38 +00:00
|
|
|
sha256 = "08k913gw0ip2q686z9k63bcn1n5s4w6b7jj6jmmamm427xmibkph";
|
2017-05-01 19:38:35 +00:00
|
|
|
};
|
|
|
|
|
2017-09-06 16:01:27 +00:00
|
|
|
checkInputs = with pythonPackages; [ pytest ];
|
|
|
|
|
2017-05-01 19:38:35 +00:00
|
|
|
propagatedBuildInputs = with pythonPackages;
|
2017-05-07 10:55:45 +00:00
|
|
|
[ requests beautifulsoup4 future ];
|
2017-05-01 19:38:35 +00:00
|
|
|
|
2017-09-06 16:01:27 +00:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2017-05-01 19:38:35 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Mastodon CLI interface";
|
|
|
|
homepage = "https://github.com/ihabunek/toot";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.matthiasbeyer ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|