1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
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 ];
};
}