depot/third_party/nixpkgs/pkgs/tools/misc/brotab/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

36 lines
840 B
Nix

{ lib, fetchFromGitHub, glibcLocales, python }:
python.pkgs.buildPythonApplication rec {
version = "1.2.1";
pname = "brotab";
src = fetchFromGitHub {
owner = "balta2ar";
repo = pname;
rev = version;
sha256 = "14yz0szwzdjvwkw24rma34y6iiwnw9qzsm89gkglc0xxa6msg6j3";
};
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 ];
};
}