{python3Packages.,}duckdb: update python hash in updateScript

This commit is contained in:
Michael Daniels
2025-12-27 12:24:59 -05:00
parent 7b385ba46f
commit dac3550448
4 changed files with 8 additions and 3 deletions

View File

@@ -132,6 +132,7 @@ stdenv.mkDerivation (finalAttrs: {
'';
passthru.updateScript = ./update.sh;
passthru.pythonHash = versions.python_hash;
meta = {
changelog = "https://github.com/duckdb/duckdb/releases/tag/v${finalAttrs.version}";

View File

@@ -35,3 +35,6 @@ json=$(nix-prefetch-github "${owner}" "${repo}" --rev "v${tag}")
json_set ".version" "${tag}"
json_set ".rev" "$(jq -r '.rev' <<< "${json}")"
json_set ".hash" "$(jq -r '.hash' <<< "${json}")"
python_json=$(nix-prefetch-github "${owner}" "${repo}-python" --rev "v${tag}")
json_set ".python_hash" "$(jq -r '.hash' <<< "${python_json}")"

View File

@@ -1,5 +1,6 @@
{
"version": "1.4.1",
"rev": "b390a7c3760bd95926fe8aefde20d04b349b472e",
"hash": "sha256-w/mELyRs4B9hJngi1MLed0fHRq/ldkkFV+SDkSxs3O8="
"hash": "sha256-w/mELyRs4B9hJngi1MLed0fHRq/ldkkFV+SDkSxs3O8=",
"python_hash": "sha256-cZyiTqu5iW/cqEo42b/XnOG7hJqtQs1h2RXXL392ujA="
}

View File

@@ -25,7 +25,7 @@
buildPythonPackage rec {
inherit (duckdb)
pname
version
version # nixpkgs-update: no auto update
;
pyproject = true;
@@ -33,7 +33,7 @@ buildPythonPackage rec {
owner = "duckdb";
repo = "duckdb-python";
tag = "v${version}";
hash = "sha256-cZyiTqu5iW/cqEo42b/XnOG7hJqtQs1h2RXXL392ujA=";
hash = duckdb.passthru.pythonHash;
};
postPatch = ''