* [gentoo-commits] proj/sci:master commit in: dev-python/snakemake/, dev-python/snakemake/files/
@ 2025-08-02 11:10 Nowa Ammerlaan
0 siblings, 0 replies; only message in thread
From: Nowa Ammerlaan @ 2025-08-02 11:10 UTC (permalink / raw
To: gentoo-commits
commit: 9f2cdea858cdda9a5e789fe2f0d5be15e06411ca
Author: Michael Schubert <mschu.dev <AT> gmail <DOT> com>
AuthorDate: Sat Jul 26 15:55:40 2025 +0000
Commit: Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
CommitDate: Sat Aug 2 10:48:00 2025 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=9f2cdea8
dev-python/snakemake: fix asset downloading
Signed-off-by: Michael Schubert <mschu.dev <AT> gmail.com>
Part-of: https://github.com/gentoo/sci/pull/1323
Closes: https://github.com/gentoo/sci/pull/1323
Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org>
.../snakemake/files/snakemake-9.7.1-assets.patch | 22 ++++++++++++++++++++++
dev-python/snakemake/snakemake-9.7.1.ebuild | 4 ++++
2 files changed, 26 insertions(+)
diff --git a/dev-python/snakemake/files/snakemake-9.7.1-assets.patch b/dev-python/snakemake/files/snakemake-9.7.1-assets.patch
new file mode 100644
index 000000000..f7280e3a4
--- /dev/null
+++ b/dev-python/snakemake/files/snakemake-9.7.1-assets.patch
@@ -0,0 +1,22 @@
+From 4fea6631cd69c90816777e75955a80e81bb04901 Mon Sep 17 00:00:00 2001
+From: Michael Schubert <mschu.dev@gmail.com>
+Date: Sat, 26 Jul 2025 15:55:58 +0200
+Subject: [PATCH] fix: if file is present and no sha256 provided assume pass
+
+---
+ src/snakemake/assets/__init__.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/snakemake/assets/__init__.py b/src/snakemake/assets/__init__.py
+index f0be54693b..19b0912c1f 100644
+--- a/src/snakemake/assets/__init__.py
++++ b/src/snakemake/assets/__init__.py
+@@ -541,7 +541,7 @@ def deploy(cls) -> None:
+ if target_path.exists():
+ with open(target_path, "rb") as fin:
+ # file is already present, check if it is up to date
+- if (asset.sha256 is not None) and (
++ if (asset.sha256 is None) or (
+ asset.sha256 == hashlib.sha256(fin.read()).hexdigest()
+ ):
+ continue
diff --git a/dev-python/snakemake/snakemake-9.7.1.ebuild b/dev-python/snakemake/snakemake-9.7.1.ebuild
index 7ebf438cb..f2c9f6511 100644
--- a/dev-python/snakemake/snakemake-9.7.1.ebuild
+++ b/dev-python/snakemake/snakemake-9.7.1.ebuild
@@ -54,6 +54,10 @@ BDEPEND="
)
"
+PATCHES=(
+ "${FILESDIR}/${P}-assets.patch"
+)
+
# distutils_enable_sphinx docs \
# dev-python/sphinxcontrib-napoleon \
# dev-python/sphinx-argparse \
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-08-02 11:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-02 11:10 [gentoo-commits] proj/sci:master commit in: dev-python/snakemake/, dev-python/snakemake/files/ Nowa Ammerlaan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox