at master 994 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "diceware"; 12 version = "1.0.1"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-VLaQgJ8MVqswhaGOFaDDgE1KDRJ/OK7wtc9fhZ0PZjk="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 dependencies = [ setuptools ]; 25 26 nativeCheckInputs = [ pytestCheckHook ]; 27 28 disabledTestMarks = [ 29 # see https://github.com/ulif/diceware/commit/a7d844df76cd4b95a717f21ef5aa6167477b6733 30 "packaging" 31 ]; 32 33 pythonImportsCheck = [ "diceware" ]; 34 35 meta = with lib; { 36 description = "Generates passphrases by concatenating words randomly picked from wordlists"; 37 mainProgram = "diceware"; 38 homepage = "https://github.com/ulif/diceware"; 39 changelog = "https://github.com/ulif/diceware/blob/v${version}/CHANGES.rst"; 40 license = licenses.gpl3; 41 maintainers = with maintainers; [ asymmetric ]; 42 }; 43}