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