2021-02-03 11:46:49 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2017-05-31 21:01:05 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mnemonic";
|
2019-10-24 06:47:39 +00:00
|
|
|
version = "0.19";
|
2017-05-31 21:01:05 +00:00
|
|
|
|
2021-02-03 11:46:49 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trezor";
|
|
|
|
repo = "python-${pname}";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0rs3szdikkgypiwn43ad3lwh7zvpccw39j5ggkziq6v7pnw3isaq";
|
2017-05-31 21:01:05 +00:00
|
|
|
};
|
|
|
|
|
2021-02-03 11:46:49 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2017-05-31 21:01:05 +00:00
|
|
|
|
2021-02-03 11:46:49 +00:00
|
|
|
pythonImportsCheck = [ "mnemonic" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Reference implementation of BIP-0039";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/trezor/python-mnemonic";
|
2021-02-03 11:46:49 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ np prusnak ];
|
2017-05-31 21:01:05 +00:00
|
|
|
};
|
|
|
|
}
|