depot/third_party/nixpkgs/pkgs/development/python-modules/mnemonic/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

28 lines
617 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "mnemonic";
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 ];
};
}