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