2018-02-25 18:42:08 +01:00
|
|
|
{ lib
|
|
|
|
, pythonPackages
|
|
|
|
}:
|
|
|
|
|
|
|
|
with pythonPackages;
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "diceware";
|
2018-04-08 08:35:12 +02:00
|
|
|
version = "0.9.5";
|
2018-02-25 18:42:08 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-04-08 08:35:12 +02:00
|
|
|
sha256 = "22a998361fd2afbc7890062e228235b3501084de1e6a5bb61f16d2637977f50d";
|
2018-02-25 18:42:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pytestrunner ];
|
|
|
|
|
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";
|
|
|
|
homepage = https://github.com/ulif/diceware;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ asymmetric ];
|
|
|
|
};
|
|
|
|
}
|