python-bitcointx: 1.1.4 -> 1.1.5

This commit is contained in:
Otto Sabart 2024-05-19 21:00:00 +02:00
parent 0de7f48528
commit 946a0b8441
No known key found for this signature in database
GPG key ID: 823BAE99F8BE1E3C
2 changed files with 23 additions and 19 deletions

View file

@ -2,13 +2,13 @@
buildPythonPackageWithDepsCheck rec { buildPythonPackageWithDepsCheck rec {
pname = "python-bitcointx"; pname = "python-bitcointx";
version = "1.1.4"; version = "1.1.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Simplexum"; owner = "Simplexum";
repo = "python-bitcointx"; repo = "python-bitcointx";
rev = "python-bitcointx-v${version}"; rev = "python-bitcointx-v${version}";
hash = "sha256-y8/cyLQr3GbpYqCg8LKTfyL0OX7eIo5AxjdFTWTqHmk="; hash = "sha256-KXndYEsJ8JRTiGojrKXmAEeGDlHrNGs5MtYs9XYiqMo=";
}; };
patchPhase = '' patchPhase = ''
@ -18,10 +18,14 @@ buildPythonPackageWithDepsCheck rec {
done done
''; '';
pythonImportCheck = [
"bitcointx"
];
meta = with lib; { meta = with lib; {
description = "Interface to Bitcoin transaction data structures"; description = "Interface to Bitcoin transaction data structures";
homepage = "https://github.com/Simplexum/python-bitcointx"; homepage = "https://github.com/Simplexum/python-bitcointx";
maintainers = with maintainers; [ nixbitcoin ]; maintainers = with maintainers; [ seberm nixbitcoin ];
license = licenses.gpl3; license = licenses.gpl3;
}; };
} }

View file

@ -1,26 +1,26 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
. "${BASH_SOURCE[0]%/*}/../../../helper/run-in-nix-env" "git gnupg" "$@" . "${BASH_SOURCE[0]%/*}/../../../helper/run-in-nix-env" "git gnupg jq" "$@"
TMPDIR=$(mktemp -d -p /tmp) latest=$(curl -s "https://api.github.com/repos/Simplexum/python-bitcointx/tags" | jq -r '.[0].name')
trap 'rm -rf $TMPDIR' EXIT echo "Latest release is $latest"
cd "$TMPDIR"
echo "Fetching latest release" tmpdir=$(mktemp -d /tmp/python-bitcointx-verify-gpg.XXX)
git clone https://github.com/simplexum/python-bitcointx 2> /dev/null trap 'rm -rf $tmpdir' EXIT
cd python-bitcointx repo=$tmpdir/repo
latest=python-bitcointx-v1.1.4 git clone --depth 1 --branch "$latest" -c advice.detachedHead=false https://github.com/Simplexum/python-bitcointx "$repo"
echo "Latest release is ${latest}"
# GPG verification # GPG verification
export GNUPGHOME=$TMPDIR export GNUPGHOME=$tmpdir
echo "Fetching Dimitry Pethukov's Key" echo "Fetching Dimitry Pethukov's Key"
gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys B17A35BBA187395784E2A6B32301D26BDC15160D 2> /dev/null gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys B17A35BBA187395784E2A6B32301D26BDC15160D 2> /dev/null
echo "Verifying latest release" echo
git verify-commit "$latest" echo "Verifying commit"
git -C "$repo" checkout -q "tags/$latest"
git checkout -q "tags/$latest" git -C "$repo" verify-commit HEAD
rm -rf .git rm -rf "$repo"/.git
hash=$(nix hash path "$repo")
echo
echo "tag: $latest" echo "tag: $latest"
nix hash path . echo "hash: $hash"