mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:54:05 +00:00
0215034f25
when they already rely on SRI hashes.
29 lines
620 B
Nix
29 lines
620 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mnemonic";
|
|
version = "0.20";
|
|
|
|
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 ];
|
|
};
|
|
}
|