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 format = "setuptools";
8
9 src = fetchPypi {
10 pname = "cryptography_vectors";
11 inherit version;
12 hash = "sha256-hGBwa1tdDOSoVXHKM4nPiPcAu2oMYTPcn+D1ovW9oEE=";
13 };
14
15 # No tests included
16 doCheck = false;
17
18 pythonImportsCheck = [ "cryptography_vectors" ];
19
20 meta = with lib; {
21 description = "Test vectors for the cryptography package";
22 homepage = "https://cryptography.io/en/latest/development/test-vectors/";
23 # Source: https://github.com/pyca/cryptography/tree/master/vectors;
24 license = with licenses; [ asl20 bsd3 ];
25 maintainers = with maintainers; [ SuperSandro2000 ];
26 };
27}