2020-06-22 19:23:29 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2021-07-20 22:07:53 +01:00
|
|
|
, pytest-runner
|
2020-06-22 19:23:29 +01:00
|
|
|
, setuptools
|
|
|
|
, coverage, pytest
|
2018-02-25 17:42:08 +00:00
|
|
|
}:
|
|
|
|
|
2020-06-22 19:23:29 +01:00
|
|
|
buildPythonPackage rec {
|
2018-02-25 17:42:08 +00:00
|
|
|
pname = "diceware";
|
2022-02-16 04:15:29 +00:00
|
|
|
version = "0.10";
|
2018-02-25 17:42:08 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-16 04:15:29 +00:00
|
|
|
sha256 = "sha256-srTMm1n1aNLvUb/fn34a+UHSX7j1wl8XAZHburzpZWk=";
|
2018-02-25 17:42:08 +00:00
|
|
|
};
|
|
|
|
|
2021-07-20 22:07:53 +01:00
|
|
|
nativeBuildInputs = [ pytest-runner ];
|
2018-02-25 17:42:08 +00:00
|
|
|
|
2019-10-01 08:31:27 +01:00
|
|
|
propagatedBuildInputs = [ setuptools ];
|
|
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/ulif/diceware";
|
2018-02-25 17:42:08 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ asymmetric ];
|
|
|
|
};
|
|
|
|
}
|