nixpkgs/pkgs/development/python-modules/mnemonic/default.nix

29 lines
617 B
Nix
Raw Normal View History

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