2019-12-17 13:32:59 +01:00
|
|
|
{ lib, fetchFromGitLab, python3Packages }:
|
|
|
|
|
|
|
|
with python3Packages;
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "tuir";
|
2020-04-29 12:34:26 +02:00
|
|
|
version = "1.29.0";
|
2019-12-17 13:32:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "ajak";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-04-29 12:34:26 +02:00
|
|
|
sha256 = "1fqp6bvq8kzdsf3nna4mn1phdcixpx76bya43xrivxjbzsfl59ib";
|
2019-12-17 13:32:59 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# Tests try to access network
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ coverage coveralls docopt mock pylint pytest vcrpy ];
|
|
|
|
|
2021-05-09 09:35:15 +02:00
|
|
|
propagatedBuildInputs = [ beautifulsoup4 decorator kitchen requests six ];
|
2019-12-17 13:32:59 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Browse Reddit from your Terminal (fork of rtv)";
|
|
|
|
homepage = "https://gitlab.com/ajak/tuir/";
|
|
|
|
license = licenses.mit;
|
2020-11-17 12:02:06 +01:00
|
|
|
maintainers = with maintainers; [ Br1ght0ne matthiasbeyer ];
|
2019-12-17 13:32:59 +01:00
|
|
|
};
|
|
|
|
}
|