From f792cbe111f654a5bab4ddbcebd519a41589c31c Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 22 Aug 2024 15:28:15 +0200 Subject: fix(pkgs/yt): Update to v1.0.0 --- pkgs/by-name/bl/blake3/package.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pkgs/by-name/bl/blake3/package.nix (limited to 'pkgs/by-name/bl/blake3/package.nix') diff --git a/pkgs/by-name/bl/blake3/package.nix b/pkgs/by-name/bl/blake3/package.nix new file mode 100644 index 00000000..d465e856 --- /dev/null +++ b/pkgs/by-name/bl/blake3/package.nix @@ -0,0 +1,29 @@ +{ + python3Packages, + rustPlatform, + fetchFromGitHub, +}: +python3Packages.buildPythonPackage rec { + pname = "blake3"; + version = "0.4.1"; + + src = fetchFromGitHub { + owner = "oconnor663"; + repo = "blake3-py"; + rev = version; + hash = "sha256-Ju40ea8IQMOPg9BiN47BMmr/WU8HptbqqzVI+jNGpA8="; + }; + + patches = [ + ./add_cargo_lock.patch + ]; + + cargoDeps = rustPlatform.fetchCargoTarball { + inherit src patches; + hash = "sha256-GwyGSdmJTgsHWfcS2n2FCFrlwRcuANM8/WteYTTyY6o="; + }; + + format = "pyproject"; + + nativeBuildInputs = with rustPlatform; [cargoSetupHook maturinBuildHook]; +} -- cgit 1.4.1