depot/third_party/nixpkgs/pkgs/tools/security/diceware/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

33 lines
770 B
Nix

{ 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 ];
};
}