nixpkgs/pkgs/tools/misc/brotab/default.nix

37 lines
840 B
Nix
Raw Normal View History

2020-01-08 12:11:26 +00:00
{ lib, fetchFromGitHub, glibcLocales, python }:
python.pkgs.buildPythonApplication rec {
version = "1.2.1";
2020-01-08 12:11:26 +00:00
pname = "brotab";
src = fetchFromGitHub {
owner = "balta2ar";
repo = pname;
rev = version;
sha256 = "14yz0szwzdjvwkw24rma34y6iiwnw9qzsm89gkglc0xxa6msg6j3";
2020-01-08 12:11:26 +00:00
};
propagatedBuildInputs = with python.pkgs; [
requests
flask
psutil
setuptools
];
checkBuildInputs = with python.pkgs; [
pytest
2020-01-08 12:11:26 +00:00
];
# test_integration.py requires Chrome browser session
checkPhase = ''
${python.interpreter} -m unittest brotab/tests/test_{brotab,utils}.py
'';
2020-01-08 12:11:26 +00: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 ];
};
}