2017-05-01 21:38:35 +02:00
|
|
|
{ stdenv, fetchFromGitHub, pythonPackages }:
|
|
|
|
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
2017-09-13 17:55:38 +02:00
|
|
|
version = "0.15.0";
|
2017-05-01 21:38:35 +02:00
|
|
|
name = "toot-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ihabunek";
|
|
|
|
repo = "toot";
|
|
|
|
rev = "${version}";
|
2017-09-13 17:55:38 +02:00
|
|
|
sha256 = "08k913gw0ip2q686z9k63bcn1n5s4w6b7jj6jmmamm427xmibkph";
|
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;
|
2017-05-07 12:55:45 +02:00
|
|
|
[ 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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|