about summary refs log tree commit diff stats
path: root/pkgs/by-name/bl/blake3/package.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-22 15:28:15 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-22 15:28:15 +0200
commitf792cbe111f654a5bab4ddbcebd519a41589c31c (patch)
treea9f5c32ca23c22f2a9cc881d1c7bc565e3820039 /pkgs/by-name/bl/blake3/package.nix
parentfix(pkgs/yt): Update to 0.1.3 (diff)
downloadnixos-config-f792cbe111f654a5bab4ddbcebd519a41589c31c.tar.gz
nixos-config-f792cbe111f654a5bab4ddbcebd519a41589c31c.zip
fix(pkgs/yt): Update to v1.0.0
Diffstat (limited to '')
-rw-r--r--pkgs/by-name/bl/blake3/package.nix29
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];
+}