diff options
Diffstat (limited to 'pkgs/by-name/bl/blake3/package.nix')
-rw-r--r-- | pkgs/by-name/bl/blake3/package.nix | 29 |
1 files changed, 29 insertions, 0 deletions
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]; +} |