From 20d011152658330a282bb462a959a1f7d23e7804 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Wed, 3 Feb 2021 12:55:25 +0100 Subject: [PATCH] python3Packages.shamir-mnemonic: 0.1.0 -> 0.2.0 --- .../shamir-mnemonic/default.nix | 32 +++++++++++++++---- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/shamir-mnemonic/default.nix b/pkgs/development/python-modules/shamir-mnemonic/default.nix index 2225466658d..23225c56c11 100644 --- a/pkgs/development/python-modules/shamir-mnemonic/default.nix +++ b/pkgs/development/python-modules/shamir-mnemonic/default.nix @@ -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 ]; }; }