1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6}:
7
8buildPythonPackage rec {
9 pname = "mnemonic";
10 version = "0.20";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "trezor";
15 repo = "python-${pname}";
16 rev = "v${version}";
17 hash = "sha256-YYgWlYfVd1iALOziaUI8uVYjJDCIVk/dXcUmJd2jcvQ=";
18 };
19
20 nativeCheckInputs = [ pytestCheckHook ];
21
22 pythonImportsCheck = [ "mnemonic" ];
23
24 meta = with lib; {
25 description = "Reference implementation of BIP-0039";
26 homepage = "https://github.com/trezor/python-mnemonic";
27 license = licenses.mit;
28 maintainers = with maintainers; [
29 np
30 prusnak
31 ];
32 };
33}