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