1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "starkbank-ecdsa";
11 version = "2.2.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "starkbank";
18 repo = "ecdsa-python";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-HarlCDE2qOLbyhMLOE++bTC+7srJqwmohM6vrJkJ/gc=";
21 };
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 preCheck = ''
26 cd tests
27 '';
28
29 pytestFlagsArray = [
30 "-v"
31 "*.py"
32 ];
33
34 pythonImportsCheck = [ "ellipticcurve" ];
35
36 meta = with lib; {
37 description = "Python ECDSA library";
38 homepage = "https://github.com/starkbank/ecdsa-python";
39 license = with licenses; [ mit ];
40 maintainers = with maintainers; [ fab ];
41 };
42}