python3Packages.primp: remove Cargo.lock

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
Ethan Carter Edwards
2026-06-09 10:16:09 -07:00
parent 09ee3568ee
commit 17094c7888
2 changed files with 7 additions and 4284 deletions
File diff suppressed because it is too large Load Diff
@@ -14,6 +14,8 @@ buildPythonPackage (finalAttrs: {
version = "1.3.1";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "deedy5";
repo = "primp";
@@ -21,14 +23,13 @@ buildPythonPackage (finalAttrs: {
hash = "sha256-VNb/U68NXmfH7eY8JOEk0z2yOUD4R/kFI1IShWS0pU4=";
};
# The Cargo.lock is not pushed upstream
cargoDeps = rustPlatform.importCargoLock { lockFile = ./Cargo.lock; };
postPatch = ''
cp ${./Cargo.lock} Cargo.lock
'';
buildAndTestSubdir = "crates/primp-python";
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) pname version src;
hash = "sha256-fnOCsxR0/6AnVO7n2M92WIA6kbyOkI6fwQh5QLnsxSc=";
};
nativeBuildInputs = [
rustPlatform.bindgenHook
rustPlatform.cargoSetupHook