nixpkgs/pkgs/applications/science/biology/obitools/obitools3.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.1 KiB
Nix
Raw Permalink Normal View History

{ stdenv, lib, fetchurl, python3Packages, cmake, python3 }:
2020-04-24 09:20:14 +00:00
python3Packages.buildPythonApplication rec {
2020-04-24 09:20:14 +00:00
pname = "obitools3";
2021-09-07 07:38:41 +00:00
version = "3.0.1b11";
2020-04-24 09:20:14 +00:00
src = fetchurl {
url = "https://git.metabarcoding.org/obitools/${pname}/repository/v${version}/archive.tar.gz";
2021-09-07 07:38:41 +00:00
sha256 = "1x7a0nrr9agg1pfgq8i1j8r1p6c0jpyxsv196ylix1dd2iivmas1";
2020-04-24 09:20:14 +00:00
};
nativeBuildInputs = [ python3Packages.cython cmake ];
postPatch = lib.optionalString stdenv.hostPlatform.isAarch64 ''
substituteInPlace setup.py \
--replace "'-msse2'," ""
'';
2020-04-24 09:20:14 +00:00
preBuild = ''
substituteInPlace src/CMakeLists.txt --replace \$'{PYTHONLIB}' "$out/${python3.sitePackages}";
export NIX_CFLAGS_COMPILE="-L $out/${python3.sitePackages} $NIX_CFLAGS_COMPILE"
2020-04-24 09:20:14 +00:00
'';
dontConfigure = true;
doCheck = true;
2021-01-15 13:21:58 +00:00
meta = with lib ; {
2020-04-24 09:20:14 +00:00
description = "Management of analyses and data in DNA metabarcoding";
mainProgram = "obi";
2020-04-24 09:20:14 +00:00
homepage = "https://git.metabarcoding.org/obitools/obitools3";
license = licenses.cecill20;
maintainers = [ maintainers.bzizou ];
platforms = platforms.all;
};
}