summaryrefslogtreecommitdiff
path: root/pkgs/development/perl-modules/Bio-Ext-Align/default.nix
blob: 936148bc1ce855f4abd4eba3f6ff6cb91a8a09a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
  lib,
  buildPerlPackage,
  fetchFromGitHub,
}:

buildPerlPackage rec {
  pname = "BioExtAlign";
  version = "1.5.1";

  outputs = [ "out" ];

  src = fetchFromGitHub {
    owner = "bioperl";
    repo = "bioperl-ext";
    rev = "bioperl-ext-release-${lib.replaceStrings [ "." ] [ "-" ] version}";
    sha256 = "sha256-+0tZ6q3PFem8DWa2vq+njOLmjDvMB0JhD0FGk00lVMA=";
  };

  patches = [
    # Starting for Perl 5.6, implicit function declaration are treated as errors
    # There may be an error but ensembl-vep (the main package for this dependency)
    # runs
    ./no-implicit-function.patch
    # Tests need other parts of BioExt, disabling them
    ./disable-other-tests.patch
    ./fprintf.patch
  ];

  # Do not install other Bio-ext packages
  preConfigure = ''
    cd Bio/Ext/Align
  '';

  # Disable tests as it requires Bio::Tools::Align which is in a different directory
  buildPhase = ''
    make
  '';

  checkPhase = ''
    runHook preCheck

    make test

    runHook postCheck
  '';

  meta = {
    homepage = "https://github.com/bioperl/bioperl-ext";
    description = "Write Perl Subroutines in Other Programming Languages";
    longDescription = ''
      Part of BioPerl Extensions (BioPerl-Ext) distribution, a collection of Bioperl C-compiled extensions.
    '';
    license = with lib.licenses; [ artistic1 ];
    maintainers = with lib.maintainers; [ apraga ];
  };
}