1# This older version only exists because `ceph` needs it, see `cryptography.nix`.
2{
3 buildPythonPackage,
4 fetchPypi,
5 lib,
6 cryptography,
7}:
8
9buildPythonPackage rec {
10 pname = "cryptography-vectors";
11 # The test vectors must have the same version as the cryptography package
12 inherit (cryptography) version;
13 format = "setuptools";
14
15 src = fetchPypi {
16 pname = "cryptography_vectors";
17 inherit version;
18 hash = "sha256-hGBwa1tdDOSoVXHKM4nPiPcAu2oMYTPcn+D1ovW9oEE=";
19 };
20
21 # No tests included
22 doCheck = false;
23
24 pythonImportsCheck = [ "cryptography_vectors" ];
25
26 meta = with lib; {
27 description = "Test vectors for the cryptography package";
28 homepage = "https://cryptography.io/en/latest/development/test-vectors/";
29 # Source: https://github.com/pyca/cryptography/tree/master/vectors;
30 license = with licenses; [
31 asl20
32 bsd3
33 ];
34 maintainers = with maintainers; [ nh2 ];
35 };
36}