@@ -1,19 +1,25 @@
11{ stdenv, fetchFromGitHub, pythonPackages }:
22
33pythonPackages.buildPythonApplication rec {
4− version = "0.8.0";
4+ version = "0.13.0";
55 name = "toot-${version}";
66
77 src = fetchFromGitHub {
88 owner = "ihabunek";
99 repo = "toot";
1010 rev = "${version}";
11− sha256 = "1y1jz4f53njq94zab0icf7jhd4jp10ywm508l4lw6spb69wr7rdy";
11+ sha256 = "0gbsq43qv5qg4avx7czs57k40m8lzh8f1z5yizqqc7r02p2sacnc";
1212 };
1313
14+ checkInputs = with pythonPackages; [ pytest ];
15+
1416 propagatedBuildInputs = with pythonPackages;
1517 [ requests beautifulsoup4 future ];
1618
19+ checkPhase = ''
20+ py.test
21+ '';
22+
1723 meta = with stdenv.lib; {
1824 description = "Mastodon CLI interface";
1925 homepage = "https://github.com/ihabunek/toot";