diff options
author | Daniel Wheeler <daniel.wheeler2@gmail.com> | 2022-02-17 18:06:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-17 18:06:23 -0500 |
commit | 4befe7a89f7cf3081eb0fd8cdb1eb83ab1152b9d (patch) | |
tree | e65ebc86589aa892dc8843772c579cdd7499178e /pkgs | |
parent | 7947d484633c028cfb0a484b990bb53b70723f3b (diff) |
snakemake: 6.10.0 -> 6.15.5 (#159026)
Fetch from GitHub rather than PyPI so tests are included.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/science/misc/snakemake/default.nix | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/pkgs/applications/science/misc/snakemake/default.nix b/pkgs/applications/science/misc/snakemake/default.nix index 40c102fc68220..f4a3da9711dda 100644 --- a/pkgs/applications/science/misc/snakemake/default.nix +++ b/pkgs/applications/science/misc/snakemake/default.nix @@ -1,8 +1,8 @@ -{ lib, python3Packages }: +{ lib, python3Packages, fetchFromGitHub }: python3Packages.buildPythonApplication rec { pname = "snakemake"; - version = "6.10.0"; + version = "6.15.5"; propagatedBuildInputs = with python3Packages; [ appdirs @@ -29,12 +29,31 @@ python3Packages.buildPythonApplication rec { wrapt ]; - src = python3Packages.fetchPypi { - inherit pname version; - sha256 = "199a86c8d1fcfdb88c4271a1507b0ab371a15bc407f2dad9b0ab8c43438adff8"; + src = fetchFromGitHub { + owner = "snakemake"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-i8C7gPLzUzSxNH9xwpr+fUKI1SvpYFsFBlspS74LoWU="; }; - doCheck = false; # Tests depend on Google Cloud credentials at ${HOME}/gcloud-service-key.json + # 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; [ + pandas + pytestCheckHook + requests-mock + ]; + + disabledTestPaths = [ + "tests/test_tes.py" + "tests/test_tibanna.py" + "tests/test_linting.py" + ]; + + pythonImportsCheck = [ "snakemake" ]; meta = with lib; { homepage = "https://snakemake.github.io"; |