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