about summary refs log tree commit diff
path: root/pkgs/applications/misc/bitwarden-menu/default.nix
blob: 4c6eb0f1686bd64e752919058462082e9c9d6be4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ lib
, buildPythonApplication
, python3Packages
, fetchPypi
, pynput
, xdg-base-dirs
}:

buildPythonApplication rec {
  pname = "bitwarden-menu";
  version = "0.4.3";
  format = "pyproject";

  src = fetchPypi {
    pname = "bitwarden_menu";
    inherit version;
    hash = "sha256-tuIolWvQ/vKSJr6oUTL7ZLPgdkYsIZods5yQNNfWbWY=";
  };

  nativeBuildInputs = with python3Packages; [
    hatch-vcs
    hatchling
  ];

  propagatedBuildInputs = [
    pynput
    xdg-base-dirs
  ];

  doCheck = false;

  meta = with lib; {
    changelog = "https://github.com/firecat53/bitwarden-menu/releases/tag/v${version}";
    description = "Dmenu/Rofi frontend for managing Bitwarden vaults. Uses the Bitwarden CLI tool to interact with the Bitwarden database.";
    mainProgram = "bwm";
    homepage = "https://github.com/firecat53/bitwarden-menu";
    license = licenses.mit;
    maintainers = with maintainers; [ aman9das ];
  };
}