2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
cryptography,
|
|
|
|
flit-core,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
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;
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-04-27 09:35:20 +00:00
|
|
|
pname = "cryptography_vectors";
|
|
|
|
inherit version;
|
2024-07-31 10:19:44 +00:00
|
|
|
hash = "sha256-31ZXNnvAqQw3QwnLJhAJosU8rpGkWHgTOaD3JPgZpGo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ flit-core ];
|
2023-08-10 07:59:29 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# No tests included
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +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";
|
2024-06-05 15:53:02 +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
|
|
|
};
|
|
|
|
}
|