2018-02-25 18:42:08 +01:00
|
|
|
{ lib
|
2020-01-11 23:10:51 +01:00
|
|
|
, python3Packages
|
2018-02-25 18:42:08 +01:00
|
|
|
}:
|
|
|
|
|
2020-01-11 23:10:51 +01:00
|
|
|
with python3Packages;
|
2018-02-25 18:42:08 +01:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "diceware";
|
2018-12-26 09:50:17 +01:00
|
|
|
version = "0.9.6";
|
2018-02-25 18:42:08 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-12-26 09:50:17 +01:00
|
|
|
sha256 = "0klb0ysybzlh2wihvir82hgq62v0jjmlcqklwajyms7c0p529yby";
|
2018-02-25 18:42:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pytestrunner ];
|
|
|
|
|
2019-10-01 09:31:27 +02:00
|
|
|
propagatedBuildInputs = [ setuptools ];
|
|
|
|
|
2018-02-28 11:01:15 +01:00
|
|
|
checkInputs = [ coverage pytest ];
|
2018-02-25 18:42:08 +01: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";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/ulif/diceware";
|
2018-02-25 18:42:08 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ asymmetric ];
|
|
|
|
};
|
|
|
|
}
|