diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2024-01-30 17:16:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-30 17:16:22 +0100 |
commit | 950c66b7873f93bad3eb69ce879e3ab028c0f342 (patch) | |
tree | 96d7a0b9c7ee4bfd6b208faddd5c38e04a487a6f /pkgs/applications/science | |
parent | bed631549e4759ece200ac80bbd6fe2b65607640 (diff) | |
parent | ac3e621e7fc5501dd77dab6267de4a6a1a1b107e (diff) | |
download | nixlib-950c66b7873f93bad3eb69ce879e3ab028c0f342.tar nixlib-950c66b7873f93bad3eb69ce879e3ab028c0f342.tar.gz nixlib-950c66b7873f93bad3eb69ce879e3ab028c0f342.tar.bz2 nixlib-950c66b7873f93bad3eb69ce879e3ab028c0f342.tar.lz nixlib-950c66b7873f93bad3eb69ce879e3ab028c0f342.tar.xz nixlib-950c66b7873f93bad3eb69ce879e3ab028c0f342.tar.zst nixlib-950c66b7873f93bad3eb69ce879e3ab028c0f342.zip |
Merge pull request #284607 from dotlambda/deeptools-fix
deeptools: fix build
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r-- | pkgs/applications/science/biology/deeptools/default.nix | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/pkgs/applications/science/biology/deeptools/default.nix b/pkgs/applications/science/biology/deeptools/default.nix index a199e41d50aa..a7a1f77dfe90 100644 --- a/pkgs/applications/science/biology/deeptools/default.nix +++ b/pkgs/applications/science/biology/deeptools/default.nix @@ -1,19 +1,25 @@ -{ lib, python, fetchFromGitHub }: -with python.pkgs; -buildPythonApplication rec { - pname = "deepTools"; +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication rec { + pname = "deeptools"; version = "3.5.4"; + pyproject = true; src = fetchFromGitHub { owner = "deeptools"; repo = "deepTools"; rev = version; - sha256 = "sha256-A8YdlMptmJyxWW0EYLjXFIWjIO/mttEC7VYdlCe9MaI="; + hash = "sha256-A8YdlMptmJyxWW0EYLjXFIWjIO/mttEC7VYdlCe9MaI="; }; - format = "pyproject"; + nativeBuildInputs = with python3.pkgs; [ + setuptools + ]; - propagatedBuildInputs = [ + propagatedBuildInputs = with python3.pkgs; [ numpy numpydoc scipy @@ -26,7 +32,21 @@ buildPythonApplication rec { importlib-metadata ]; - nativeCheckInputs = [ pytest ]; + nativeCheckInputs = with python3.pkgs; [ + pytestCheckHook + ]; + + preCheck = '' + export PATH="$out/bin:$PATH" + ''; + + disabledTestPaths = [ + # tests trip on `len(sys.argv) == 1` + "deeptools/test/test_bigwigAverage.py" + "deeptools/test/test_bigwigCompare_and_multiBigwigSummary.py" + "deeptools/test/test_heatmapper.py" + "deeptools/test/test_multiBamSummary.py" + ]; meta = with lib; { homepage = "https://deeptools.readthedocs.io/en/develop"; |