blob: 832c4ce358a8f81c0c96387a7bf8d22e7dd424b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
lib,
buildPythonPackage,
cryptography,
fetchpatch2,
uv-build,
}:
buildPythonPackage rec {
pname = "cryptography-vectors";
# The test vectors must have the same version as the cryptography package
inherit (cryptography) version src;
pyproject = true;
sourceRoot = "${src.name}/vectors";
patches = [
# https://github.com/NixOS/nixpkgs/pull/449568
(fetchpatch2 {
name = "uv-build.patch";
url = "https://github.com/pyca/cryptography/commit/5f311c1cbe09ddea6136b0bb737fb7df6df1b923.patch?full_index=1";
stripLen = 1;
includes = [ "pyproject.toml" ];
hash = "sha256-OdHK0OGrvOi3mS0q+v8keDLvKxtgQkDkHQSYnmC/vd4=";
})
];
build-system = [ uv-build ];
# No tests included
doCheck = false;
pythonImportsCheck = [ "cryptography_vectors" ];
meta = {
description = "Test vectors for the cryptography package";
homepage = "https://cryptography.io/en/latest/development/test-vectors/";
downloadPage = "https://github.com/pyca/cryptography/tree/master/vectors";
license = with lib.licenses; [
asl20
bsd3
];
maintainers = with lib.maintainers; [ mdaniels5757 ];
};
}
|