snakemake: 8.23.0 -> 8.29.0 (#385979)

Co-authored-by: emaryn <emaryn@users.noreply.github.com>

authored by emaryn emaryn and committed by GitHub f885cdd5 05de42c3

+27 -27
+27 -27
pkgs/by-name/sn/snakemake/package.nix
··· 1 1 { 2 2 lib, 3 3 stdenv, 4 - fetchPypi, 4 + fetchFromGitHub, 5 5 python3Packages, 6 6 stress, 7 7 versionCheckHook, 8 + writableTmpDirAsHomeHook, 8 9 }: 9 10 10 11 python3Packages.buildPythonApplication rec { 11 12 pname = "snakemake"; 12 - version = "8.23.0"; 13 - 13 + version = "8.29.0"; 14 14 pyproject = true; 15 15 16 - src = fetchPypi { 17 - inherit pname version; 18 - hash = "sha256-XENI9VJW62KyrxDGSwQiygggYZOu9yW2QSNyp4BO9Us="; 16 + src = fetchFromGitHub { 17 + owner = "snakemake"; 18 + repo = "snakemake"; 19 + tag = "v${version}"; 20 + hash = "sha256-vGa0N5jbm+b4FH1rkvZI5yI005K0D5AP29JGK2wscps="; 19 21 }; 20 22 21 23 postPatch = '' ··· 25 27 --replace-fail 'del os.environ["PYTHONPATH"]' "pass" 26 28 substituteInPlace snakemake/unit_tests/__init__.py \ 27 29 --replace-fail '"unit_tests/templates"' '"'"$PWD"'/snakemake/unit_tests/templates"' 30 + substituteInPlace snakemake/assets/__init__.py \ 31 + --replace-fail "raise err" "return bytes('err','ascii')" 28 32 ''; 29 33 30 - build-system = with python3Packages; [ 31 - setuptools 32 - ]; 34 + build-system = with python3Packages; [ setuptools ]; 33 35 34 36 dependencies = with python3Packages; [ 35 37 appdirs ··· 68 70 # for the current basic test suite. Slurm, Tibanna and Tes require extra 69 71 # setup. 70 72 71 - nativeCheckInputs = with python3Packages; [ 72 - numpy 73 - pandas 74 - pytestCheckHook 75 - pytest-mock 76 - requests-mock 77 - snakemake-executor-plugin-cluster-generic 78 - snakemake-storage-plugin-fs 79 - stress 80 - versionCheckHook 81 - ]; 73 + nativeCheckInputs = 74 + (with python3Packages; [ 75 + numpy 76 + pandas 77 + pytestCheckHook 78 + pytest-mock 79 + requests-mock 80 + snakemake-executor-plugin-cluster-generic 81 + snakemake-storage-plugin-fs 82 + stress 83 + versionCheckHook 84 + polars 85 + ]) 86 + ++ [ writableTmpDirAsHomeHook ]; 87 + 82 88 versionCheckProgramArg = [ "--version" ]; 83 89 84 90 pytestFlagsArray = [ ··· 140 146 "test_scopes_submitted_to_cluster" 141 147 ]; 142 148 143 - pythonImportsCheck = [ 144 - "snakemake" 145 - ]; 146 - 147 - preCheck = '' 148 - export HOME="$(mktemp -d)" 149 - ''; 149 + pythonImportsCheck = [ "snakemake" ]; 150 150 151 151 meta = { 152 152 homepage = "https://snakemake.github.io";