depot/third_party/nixpkgs/pkgs/development/python-modules/shamir-mnemonic/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

43 lines
829 B
Nix

{
lib,
buildPythonPackage,
isPy3k,
fetchFromGitHub,
attrs,
click,
colorama,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "shamir-mnemonic";
version = "0.2.2";
format = "setuptools";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "trezor";
repo = "python-${pname}";
rev = "v${version}";
hash = "sha256-b9tBXN9dBdAeGg3xf5ZBdd6kPpFzseJl6wRTTfNZEwo=";
};
propagatedBuildInputs = [
attrs
click
colorama
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "shamir_mnemonic" ];
meta = with lib; {
description = "Reference implementation of SLIP-0039";
mainProgram = "shamir";
homepage = "https://github.com/trezor/python-shamir-mnemonic";
license = licenses.mit;
maintainers = with maintainers; [ prusnak ];
};
}