2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, 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-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-gN4EUsSzT1b1UY6B69dba5BfVyiq7VIdQuQfTryKQ/s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
2023-08-10 07:59:29 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# No tests included
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"cryptography_vectors"
|
|
|
|
];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|