Merge pull request #73777 from doronbehar/package-brotab
brotab: init at 0.0.5
This commit is contained in:
commit
8cc8b3b235
33
pkgs/tools/misc/brotab/default.nix
Normal file
33
pkgs/tools/misc/brotab/default.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ lib, fetchFromGitHub, glibcLocales, python }:
|
||||
|
||||
python.pkgs.buildPythonApplication rec {
|
||||
version = "1.1.0";
|
||||
pname = "brotab";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "balta2ar";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "17yj5i8p28a7zmixdfa1i4gfc7c2fmdkxlymazasar58dz8m68mw";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python.pkgs; [
|
||||
requests
|
||||
flask
|
||||
requests
|
||||
pytest
|
||||
psutil
|
||||
];
|
||||
|
||||
# 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 ];
|
||||
};
|
||||
}
|
@ -18435,6 +18435,10 @@ in
|
||||
|
||||
browsh = callPackage ../applications/networking/browsers/browsh { };
|
||||
|
||||
brotab = callPackage ../tools/misc/brotab {
|
||||
python = python3;
|
||||
};
|
||||
|
||||
bookworm = callPackage ../applications/office/bookworm { };
|
||||
|
||||
chromium = callPackage ../applications/networking/browsers/chromium (config.chromium or {});
|
||||
|
Loading…
x
Reference in New Issue
Block a user