1{ buildPythonPackage, fetchPypi, lib, cryptography }:
2
3buildPythonPackage rec {
4 pname = "cryptography-vectors";
5 # The test vectors must have the same version as the cryptography package
6 inherit (cryptography) version;
7
8 src = fetchPypi {
9 pname = "cryptography_vectors";
10 inherit version;
11 hash = "sha256-BDH9EHwfutA3dwSnBRlFs7ORFp/dxPb6C9TtxrbiNd0=";
12 };
13
14 # No tests included
15 doCheck = false;
16
17 pythonImportsCheck = [ "cryptography_vectors" ];
18
19 meta = with lib; {
20 description = "Test vectors for the cryptography package";
21 homepage = "https://cryptography.io/en/latest/development/test-vectors/";
22 # Source: https://github.com/pyca/cryptography/tree/master/vectors;
23 license = with licenses; [ asl20 bsd3 ];
24 maintainers = with maintainers; [ SuperSandro2000 ];
25 };
26}