1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 cryptography, 6 flit-core, 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 pyproject = true; 14 15 src = fetchPypi { 16 pname = "cryptography_vectors"; 17 inherit version; 18 hash = "sha256-+7BAjfj/LSs9vSkovFt/7r/dNvsJL6h5DVd4qbmh+e8="; 19 }; 20 21 build-system = [ flit-core ]; 22 23 # No tests included 24 doCheck = false; 25 26 pythonImportsCheck = [ "cryptography_vectors" ]; 27 28 meta = with lib; { 29 description = "Test vectors for the cryptography package"; 30 homepage = "https://cryptography.io/en/latest/development/test-vectors/"; 31 downloadPage = "https://github.com/pyca/cryptography/tree/master/vectors"; 32 license = with licenses; [ 33 asl20 34 bsd3 35 ]; 36 maintainers = with maintainers; [ SuperSandro2000 ]; 37 }; 38}