python3Packages.shamir-mnemonic: 0.1.0 -> 0.2.0

This commit is contained in:
Pavol Rusnak 2021-02-03 12:55:25 +01:00
parent c72b72a7c1
commit 20d0111526
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -1,22 +1,40 @@
{ lib, fetchPypi, buildPythonPackage, isPy3k, click, colorama }:
{ lib
, buildPythonPackage
, isPy3k
, fetchFromGitHub
, attrs
, click
, colorama
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "shamir-mnemonic";
version = "0.1.0";
version = "0.2.0";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1cc08d276e05b13cd32bd3b0c5d1cb6c30254e0086e0f6857ec106d4cceff121";
src = fetchFromGitHub {
owner = "trezor";
repo = "python-${pname}";
rev = "v${version}";
sha256 = "0lkkbl50n8g5z44x7rk1ly6ld0vlassahwagm8b15bvxfi0q9yqb";
};
propagatedBuildInputs = [ click colorama ];
propagatedBuildInputs = [
attrs
click
colorama
];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "shamir_mnemonic" ];
meta = with lib; {
description = "Reference implementation of SLIP-0039";
homepage = "https://github.com/trezor/python-shamir-mnemonic";
license = licenses.mit;
maintainers = with maintainers; [ _1000101 ];
maintainers = with maintainers; [ _1000101 prusnak ];
};
}