1{ lib, buildPythonPackage, fetchPypi
2, pytest-runner
3, setuptools
4, coverage, pytest
5}:
6
7buildPythonPackage rec {
8 pname = "diceware";
9 version = "0.10";
10
11 src = fetchPypi {
12 inherit pname version;
13 sha256 = "sha256-srTMm1n1aNLvUb/fn34a+UHSX7j1wl8XAZHburzpZWk=";
14 };
15
16 nativeBuildInputs = [ pytest-runner ];
17
18 propagatedBuildInputs = [ setuptools ];
19
20 checkInputs = [ coverage pytest ];
21
22 # see https://github.com/ulif/diceware/commit/a7d844df76cd4b95a717f21ef5aa6167477b6733
23 checkPhase = ''
24 py.test -m 'not packaging'
25 '';
26
27 meta = with lib; {
28 description = "Generates passphrases by concatenating words randomly picked from wordlists";
29 homepage = "https://github.com/ulif/diceware";
30 license = licenses.gpl3;
31 maintainers = with maintainers; [ asymmetric ];
32 };
33}