summary refs log tree commit diff
path: root/pkgs/tools/security/diceware/default.nix
blob: dcd7e853564ac32aa0473a8e82919b3dd052bce3 (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
{ lib
, python3Packages
}:

with python3Packages;

buildPythonApplication rec {
  pname = "diceware";
  version = "0.9.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0klb0ysybzlh2wihvir82hgq62v0jjmlcqklwajyms7c0p529yby";
  };

  nativeBuildInputs = [ pytestrunner ];

  propagatedBuildInputs = [ setuptools ];

  checkInputs = [ coverage pytest ];

  # see https://github.com/ulif/diceware/commit/a7d844df76cd4b95a717f21ef5aa6167477b6733
  checkPhase = ''
    py.test -m 'not packaging'
  '';

  meta = with lib; {
    description = "Generates passphrases by concatenating words randomly picked from wordlists";
    homepage = https://github.com/ulif/diceware;
    license = licenses.gpl3;
    maintainers = with maintainers; [ asymmetric ];
  };
}