2022-04-15 01:41:22 +00:00
|
|
|
{ lib
|
|
|
|
, autoPatchelfHook
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3Packages
|
|
|
|
, wget
|
|
|
|
, zlib
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "eggnog-mapper";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "2.1.10";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "eggnogdb";
|
2022-04-15 01:41:22 +00:00
|
|
|
repo = pname;
|
2022-09-09 14:08:57 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-02-16 17:41:37 +00:00
|
|
|
hash = "sha256-6R2gl2l2Cl/eva0g+kxDLBI2+5T9cFTgaGMsEfeDVU0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Not a great solution...
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "==" ">="
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
buildInputs = [
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
wget
|
|
|
|
] ++ (with python3Packages; [
|
|
|
|
biopython
|
|
|
|
psutil
|
|
|
|
XlsxWriter
|
|
|
|
]);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Tests rely on some of the databases being available, which is not bundled
|
|
|
|
# with this package as (1) in total, they represent >100GB of data, and (2)
|
|
|
|
# the user can download only those that interest them.
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Fast genome-wide functional annotation through orthology assignment";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
homepage = "https://github.com/eggnogdb/eggnog-mapper/wiki";
|
|
|
|
maintainers = with maintainers; [ luispedro ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|