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