tuicam: init at 0.0.2 (#377825)
[NixPkgs.git] / pkgs / by-name / ph / phylophlan / package.nix
blob3cb804a2922733c454100501080de806a7c3d7a1
2   lib,
3   fetchFromGitHub,
4   raxml,
5   mafft,
6   trimal,
7   blast,
8   diamond,
9   python3Packages,
11 let
12   finalAttrs = {
13     pname = "phylophlan";
14     version = "3.1.1";
15     pyproject = true;
17     src = fetchFromGitHub {
18       owner = "biobakery";
19       repo = "phylophlan";
20       rev = "refs/tags/${finalAttrs.version}";
21       hash = "sha256-KlWKt2tH2lQBh/eQ2Hbcu2gXHEFfmFEc6LrybluxINc=";
22     };
24     build-system = with python3Packages; [ setuptools ];
26     # It has no tests
27     doCheck = false;
29     dependencies = with python3Packages; [
30       biopython
31       dendropy
32       matplotlib
33       numpy
34       pandas
35       seaborn
36       distutils
37       requests
38     ];
40     # Minimum needed external tools
41     # See https://github.com/biobakery/phylophlan/wiki#dependencies
42     propagatedBuildInputs = [
43       raxml
44       mafft
45       trimal
46       blast
47       diamond
48     ];
50     postInstall = ''
51       # Not revelant in this context
52       rm -f $out/bin/phylophlan_write_default_configs.sh
53     '';
55     meta = {
56       homepage = "https://github.com/biobakery/phylophlan";
57       description = "Precise phylogenetic analysis of microbial isolates and genomes from metagenomes";
58       changelog = "https://github.com/biobakery/phylophlan/releases";
59       license = lib.licenses.mit;
60       maintainers = with lib.maintainers; [ theobori ];
61       mainProgram = "phylophlan";
62     };
63   };
65 python3Packages.buildPythonApplication finalAttrs