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

34 lines
667 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "mnemonic";
version = "0.20";
format = "setuptools";
src = fetchFromGitHub {
owner = "trezor";
repo = "python-${pname}";
rev = "v${version}";
hash = "sha256-YYgWlYfVd1iALOziaUI8uVYjJDCIVk/dXcUmJd2jcvQ=";
};
nativeCheckInputs = [ 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
];
};
}