66604c92c1
GitOrigin-RevId: 32b8ed738096bafb4cdb7f70347a0f63f9f40151
36 lines
840 B
Nix
36 lines
840 B
Nix
{ lib, fetchFromGitHub, glibcLocales, python }:
|
|
|
|
python.pkgs.buildPythonApplication rec {
|
|
version = "1.2.2";
|
|
pname = "brotab";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "balta2ar";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1c6npyws705qf9rv70mmh7d0almmpxz87a0n65lhw08lms1h3dl2";
|
|
};
|
|
|
|
propagatedBuildInputs = with python.pkgs; [
|
|
requests
|
|
flask
|
|
psutil
|
|
setuptools
|
|
];
|
|
|
|
checkBuildInputs = with python.pkgs; [
|
|
pytest
|
|
];
|
|
|
|
# test_integration.py requires Chrome browser session
|
|
checkPhase = ''
|
|
${python.interpreter} -m unittest brotab/tests/test_{brotab,utils}.py
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|