git.iko.soy/typeable/nixpkgs
on master help sign in
eggnog-mapper: 1.0.3 -> 2.1.7

https://github.com/eggnogdb/eggnog-mapper/releases

commit6cfaf0a464edc98cf9f00258d20791905c5ebf2f authorArmeen Mahdian <mahdianarmeen@gmail.com> dateFri 18 Mar 2022, 10:03 (5 years ago) parent739cf04
1 file changed+30−16
pkgs/applications/science/biology/eggnog-mapper/default.nix+30−16
pkgs/applications/science/biology/eggnog-mapper/default.nix+30−16
@@ -1,29 +1,43 @@
1−{ lib, fetchFromGitHub, fetchpatch, makeWrapper, python27Packages, wget, diamond, hmmer }:
1+{ lib
2+, autoPatchelfHook
3+, fetchFromGitHub
4+, python3Packages
5+, wget
6+, zlib
7+}:
28
3−python27Packages.buildPythonApplication rec {
9+python3Packages.buildPythonApplication rec {
410 pname = "eggnog-mapper";
5− version = "1.0.3";
11+ version = "2.1.7";
612
713 src = fetchFromGitHub {
814 owner = "eggnogdb";
9− repo = "eggnog-mapper";
15+ repo = pname;
1016 rev = version;
11− sha256 = "1aaaflppy84bhkh2hb5gnzm4xgrz0rz0cgfpadr9w8cva8p0sqdv";
17+ hash = "sha256-auVD/r8m3TAB1KYMQ7Sae23eDg6LRx/daae0505cjwU=";
1218 };
1319
14− patches = (fetchpatch {
15− url = "https://github.com/eggnogdb/eggnog-mapper/commit/6972f601ade85b65090efca747d2302acb58507f.patch";
16− sha256 = "0abnmn0bh11jihf5d3cggiild1ykawzv5f5fhb4cyyi8fvy4hcxf";
17− });
20+ postPatch = ''
21+ # Not a great solution...
22+ substituteInPlace setup.cfg \
23+ --replace "==" ">="
24+ '';
1825
19− nativeBuildInputs = [ makeWrapper ];
20− propagatedBuildInputs = [ python27Packages.biopython wget diamond hmmer ];
26+ nativeBuildInputs = [
27+ autoPatchelfHook
28+ ];
2129
22− # make emapper find diamond & hmmer
23− makeWrapperArgs = [
24− ''--prefix PATH ':' "${diamond}/bin"''
25− ''--prefix PATH ':' "${hmmer}/bin"''
26− ];
30+ buildInputs = [
31+ zlib
32+ ];
33+
34+ propagatedBuildInputs = [
35+ wget
36+ ] ++ (with python3Packages; [
37+ biopython
38+ psutil
39+ XlsxWriter
40+ ]);
2741
2842 # Tests rely on some of the databases being available, which is not bundled
2943 # with this package as (1) in total, they represent >100GB of data, and (2)