Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, setuptools 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "diceware"; 11 version = "0.10"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-srTMm1n1aNLvUb/fn34a+UHSX7j1wl8XAZHburzpZWk="; 19 }; 20 21 postPatch = '' 22 substituteInPlace setup.py \ 23 --replace "'pytest_runner'," "" 24 ''; 25 26 propagatedBuildInputs = [ 27 setuptools 28 ]; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 ]; 33 34 pytestFlagsArray = [ 35 # see https://github.com/ulif/diceware/commit/a7d844df76cd4b95a717f21ef5aa6167477b6733 36 "-m 'not packaging'" 37 ]; 38 39 pythonImportsCheck = [ 40 "diceware" 41 ]; 42 43 meta = with lib; { 44 description = "Generates passphrases by concatenating words randomly picked from wordlists"; 45 homepage = "https://github.com/ulif/diceware"; 46 changelog = "https://github.com/ulif/diceware/blob/v${version}/CHANGES.rst"; 47 license = licenses.gpl3; 48 maintainers = with maintainers; [ asymmetric ]; 49 }; 50}