nixpkgs/pkgs/development/python-modules/shamir-mnemonic/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

43 lines
819 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 ];
};
}