From 8b176291d7e33b49be8094588f5aa1206965b88b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 1 May 2022 10:15:10 +0200 Subject: [PATCH] snakemake: 6.15.5 -> 7.5.0 --- .../science/misc/snakemake/default.nix | 40 +++++++++++++------ 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/pkgs/applications/science/misc/snakemake/default.nix b/pkgs/applications/science/misc/snakemake/default.nix index f4a3da9711dd..0249752797c1 100644 --- a/pkgs/applications/science/misc/snakemake/default.nix +++ b/pkgs/applications/science/misc/snakemake/default.nix @@ -1,10 +1,21 @@ -{ lib, python3Packages, fetchFromGitHub }: +{ lib +, fetchFromGitHub +, python3 +}: -python3Packages.buildPythonApplication rec { +python3.pkgs.buildPythonApplication rec { pname = "snakemake"; - version = "6.15.5"; + version = "7.5.0"; + format = "setuptools"; - propagatedBuildInputs = with python3Packages; [ + src = fetchFromGitHub { + owner = "snakemake"; + repo = pname; + rev = "v${version}"; + hash = "sha256-KIKuV6DVHn3dDY/rJG1zNWM79tdDB6GGVH9/kYn6XaE="; + }; + + propagatedBuildInputs = with python3.pkgs; [ appdirs configargparse connection-pool @@ -22,26 +33,21 @@ python3Packages.buildPythonApplication rec { pyyaml ratelimiter requests + retry smart-open stopit tabulate toposort wrapt + yte ]; - src = fetchFromGitHub { - owner = "snakemake"; - repo = pname; - rev = "v${version}"; - sha256 = "sha256-i8C7gPLzUzSxNH9xwpr+fUKI1SvpYFsFBlspS74LoWU="; - }; - # See # https://github.com/snakemake/snakemake/blob/main/.github/workflows/main.yml#L99 # for the current basic test suite. Tibanna and Tes require extra # setup. - checkInputs = with python3Packages; [ + checkInputs = with python3.pkgs; [ pandas pytestCheckHook requests-mock @@ -53,7 +59,15 @@ python3Packages.buildPythonApplication rec { "tests/test_linting.py" ]; - pythonImportsCheck = [ "snakemake" ]; + disabledTests = [ + # Tests require network access + "test_github_issue1396" + "test_github_issue1460" + ]; + + pythonImportsCheck = [ + "snakemake" + ]; meta = with lib; { homepage = "https://snakemake.github.io";