Unverified Commit 793760ff authored by Sizhe Zhao's avatar Sizhe Zhao
Browse files

python3Packages.cryptography.vectors: fix build with uv_build 0.9.2

parent cf8b5526
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  buildPythonPackage,
  cryptography,
  fetchpatch2,
  uv-build,
}:

@@ -13,6 +14,17 @@ buildPythonPackage rec {

  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