nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 gmp,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "fastecdsa";
11 version = "3.0.1";
12 format = "setuptools";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-9LSlD9XjRsSUmro2XAYcP2sl7ueYPJc+HTHednK6SOo=";
17 };
18
19 buildInputs = [ gmp ];
20
21 nativeCheckInputs = [ pytestCheckHook ];
22
23 disabledTestPaths = [
24 # skip tests which require being online to download test vectors
25 "fastecdsa/tests/test_wycheproof_vectors.py"
26 "fastecdsa/tests/test_rfc6979_ecdsa.py"
27 ];
28
29 # skip tests for now, they fail with
30 # ImportError: cannot import name '_ecdsa' from 'fastecdsa'
31 # but the installed package works just fine
32 doCheck = false;
33
34 pythonImportsCheck = [ "fastecdsa" ];
35
36 meta = {
37 description = "Fast elliptic curve digital signatures";
38 homepage = "https://github.com/AntonKueltz/fastecdsa";
39 changelog = "https://github.com/AntonKueltz/fastecdsa/blob/v${version}/CHANGELOG.md";
40 license = lib.licenses.unlicense;
41 maintainers = with lib.maintainers; [ prusnak ];
42 };
43}