3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/diceware/default.nix

32 lines
723 B
Nix
Raw Normal View History

2018-02-25 17:42:08 +00:00
{ lib
, pythonPackages
}:
with pythonPackages;
buildPythonApplication rec {
pname = "diceware";
version = "0.9.6";
2018-02-25 17:42:08 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "0klb0ysybzlh2wihvir82hgq62v0jjmlcqklwajyms7c0p529yby";
2018-02-25 17:42:08 +00:00
};
nativeBuildInputs = [ pytestrunner ];
2018-02-28 10:01:15 +00:00
checkInputs = [ coverage pytest ];
2018-02-25 17:42:08 +00:00
# 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 ];
};
}