From 988a8e2ca4c52696fffd71a7aca7e5b468c35177 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 9 Oct 2021 12:37:19 +0200 Subject: [PATCH] python3Packages.starkbank-ecdsa: 1.1.1 -> 2.0.0 --- .../starkbank-ecdsa/default.nix | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/starkbank-ecdsa/default.nix b/pkgs/development/python-modules/starkbank-ecdsa/default.nix index 9d935444339a..df45883b9b05 100644 --- a/pkgs/development/python-modules/starkbank-ecdsa/default.nix +++ b/pkgs/development/python-modules/starkbank-ecdsa/default.nix @@ -6,18 +6,31 @@ buildPythonPackage rec { pname = "starkbank-ecdsa"; - version = "1.1.1"; + version = "2.0.0"; src = fetchFromGitHub { owner = "starkbank"; repo = "ecdsa-python"; rev = "v${version}"; - sha256 = "1x86ia0385c76nzqa00qyrvnn4j174n6piq85m7ar5i0ij7qky9a"; + sha256 = "sha256-MTd9aeX6UavRua0hnuy5qY5kltzSoyvv+LcL5EvU5Sc="; }; - checkInputs = [ pytestCheckHook ]; - pytestFlagsArray = [ "-v tests/*.py" ]; - pythonImportsCheck = [ "ellipticcurve" ]; + checkInputs = [ + pytestCheckHook + ]; + + preCheck = '' + cd tests + ''; + + pytestFlagsArray = [ + "-v" + "*.py" + ]; + + pythonImportsCheck = [ + "ellipticcurve" + ]; meta = with lib; { description = "Python ECDSA library";