mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
{python3Packages.,}duckdb: update python hash in updateScript
This commit is contained in:
@@ -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}";
|
||||
|
||||
@@ -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}")"
|
||||
|
||||
@@ -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="
|
||||
}
|
||||
|
||||
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user