nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at litex 38 lines 900 B view raw
1{ lib, fetchFromGitHub, python }: 2 3python.pkgs.buildPythonApplication rec { 4 version = "1.4.2"; 5 pname = "brotab"; 6 7 src = fetchFromGitHub { 8 owner = "balta2ar"; 9 repo = pname; 10 rev = version; 11 hash = "sha256-HKKjiW++FwjdorqquSCIdi1InE6KbMbFKZFYHBxzg8Q="; 12 }; 13 14 propagatedBuildInputs = with python.pkgs; [ 15 requests 16 flask 17 psutil 18 setuptools 19 ]; 20 21 postPatch = '' 22 substituteInPlace requirements/base.txt \ 23 --replace "Flask==2.0.2" "Flask>=2.0.2" \ 24 --replace "psutil==5.8.0" "psutil>=5.8.0" \ 25 --replace "requests==2.24.0" "requests>=2.24.0" 26 ''; 27 28 nativeCheckInputs = with python.pkgs; [ 29 pytestCheckHook 30 ]; 31 32 meta = with lib; { 33 homepage = "https://github.com/balta2ar/brotab"; 34 description = "Control your browser's tabs from the command line"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ doronbehar ]; 37 }; 38}