python3Packages.diceware: expose as library

This commit is contained in:
Martin Weinelt
2020-06-22 20:23:29 +02:00
committed by Jon
parent 3c3840ecd6
commit 48faedc336
3 changed files with 8 additions and 6 deletions

View File

@@ -0,0 +1,33 @@
{ lib, buildPythonPackage, fetchPypi
, pytestrunner
, setuptools
, coverage, pytest
}:
buildPythonPackage 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 ];
};
}