2023-08-10 07:59:29 +00:00
|
|
|
{ buildPythonPackage, fetchPypi, lib, cryptography, setuptools }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-04-27 09:35:20 +00:00
|
|
|
pname = "cryptography-vectors";
|
|
|
|
# The test vectors must have the same version as the cryptography package
|
|
|
|
inherit (cryptography) version;
|
2023-08-10 07:59:29 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-04-27 09:35:20 +00:00
|
|
|
pname = "cryptography_vectors";
|
|
|
|
inherit version;
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-Ao3/lKhSLKgYsRKV/xLfVfNI8zoZPAWX3f6COeU9FYI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# No tests included
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
pythonImportsCheck = [ "cryptography_vectors" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Test vectors for the cryptography package";
|
|
|
|
homepage = "https://cryptography.io/en/latest/development/test-vectors/";
|
2023-08-10 07:59:29 +00:00
|
|
|
downloadPage = "https://github.com/pyca/cryptography/tree/master/vectors";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = with licenses; [ asl20 bsd3 ];
|
2022-04-27 09:35:20 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|