3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/toot/default.nix

32 lines
709 B
Nix
Raw Normal View History

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