2020-01-08 13:11:26 +01:00
|
|
|
{ lib, fetchFromGitHub, glibcLocales, python }:
|
|
|
|
|
|
|
|
python.pkgs.buildPythonApplication rec {
|
2020-05-06 19:23:07 +02:00
|
|
|
version = "1.2.2";
|
2020-01-08 13:11:26 +01:00
|
|
|
pname = "brotab";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "balta2ar";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-05-06 19:23:07 +02:00
|
|
|
sha256 = "1c6npyws705qf9rv70mmh7d0almmpxz87a0n65lhw08lms1h3dl2";
|
2020-01-08 13:11:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python.pkgs; [
|
|
|
|
requests
|
|
|
|
flask
|
|
|
|
psutil
|
2020-02-19 10:54:25 +01:00
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
checkBuildInputs = with python.pkgs; [
|
|
|
|
pytest
|
2020-01-08 13:11:26 +01:00
|
|
|
];
|
|
|
|
|
2020-01-09 16:29:59 +01:00
|
|
|
# test_integration.py requires Chrome browser session
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} -m unittest brotab/tests/test_{brotab,utils}.py
|
|
|
|
'';
|
2020-02-19 10:54:25 +01:00
|
|
|
|
2020-01-08 13:11:26 +01:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/balta2ar/brotab";
|
|
|
|
description = "Control your browser's tabs from the command line";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
|
|
};
|
|
|
|
}
|