at 22.05-pre 45 lines 867 B view raw
1{ lib 2, buildPythonPackage 3, isPy3k 4, fetchFromGitHub 5, attrs 6, click 7, colorama 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "shamir-mnemonic"; 13 version = "0.2.1"; 14 15 disabled = !isPy3k; 16 17 src = fetchFromGitHub { 18 owner = "trezor"; 19 repo = "python-${pname}"; 20 rev = "v${version}"; 21 sha256 = "1mi1n01yw8yycbiv1l0xnfzlhhq2arappyvyi2jm5yq65jln77kg"; 22 }; 23 24 postPatch = '' 25 substituteInPlace setup.py \ 26 --replace "click>=7,<8" "click" 27 ''; 28 29 propagatedBuildInputs = [ 30 attrs 31 click 32 colorama 33 ]; 34 35 checkInputs = [ pytestCheckHook ]; 36 37 pythonImportsCheck = [ "shamir_mnemonic" ]; 38 39 meta = with lib; { 40 description = "Reference implementation of SLIP-0039"; 41 homepage = "https://github.com/trezor/python-shamir-mnemonic"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ _1000101 prusnak ]; 44 }; 45}