commit
c451d8d636
@ -0,0 +1,56 @@ |
||||
{ lib |
||||
, stdenvNoCC |
||||
, fetchFromGitHub |
||||
, jdk8 |
||||
, makeWrapper |
||||
, jre8 |
||||
, zip |
||||
}: |
||||
let |
||||
jdk = jdk8; |
||||
jre = jre8; |
||||
in |
||||
stdenvNoCC.mkDerivation rec { |
||||
pname = "astral"; |
||||
version = "5.7.1"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "smirarab"; |
||||
repo = "ASTRAL"; |
||||
rev = "v${version}"; |
||||
sha256 = "043w2z6gbrisqirdid022f4b8jps1pp5syi344krv2bis1gjq5sn"; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ jdk makeWrapper jre zip ]; |
||||
|
||||
buildPhase = '' |
||||
patchShebangs ./make.sh |
||||
./make.sh |
||||
''; |
||||
|
||||
doCheck = true; |
||||
|
||||
checkPhase = '' |
||||
runHook preCheck |
||||
java -jar astral.${version}.jar -i main/test_data/song_primates.424.gene.tre |
||||
runHook postCheck |
||||
''; |
||||
|
||||
installPhase = '' |
||||
mkdir -p $out/share/lib |
||||
mkdir -p $out/bin |
||||
mv astral.${version}.jar $out/share/ |
||||
mv lib/*.jar $out/share/lib |
||||
mv Astral.${version}.zip $out/share/ |
||||
cp -a main/test_data $out/share/ |
||||
makeWrapper ${jre}/bin/java $out/bin/astral \ |
||||
--add-flags "-jar $out/share/astral.${version}.jar" |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://github.com/smirarab/ASTRAL"; |
||||
description = "Tool for estimating an unrooted species tree given a set of unrooted gene trees"; |
||||
license = licenses.asl20; |
||||
maintainers = with maintainers; [ bzizou ]; |
||||
}; |
||||
} |
@ -1,13 +0,0 @@ |
||||
{ buildDunePackage, resto, resto-directory, ezresto, lwt }: |
||||
|
||||
buildDunePackage { |
||||
pname = "ezresto-directory"; |
||||
inherit (resto) src version meta useDune2 doCheck; |
||||
|
||||
propagatedBuildInputs = [ |
||||
ezresto |
||||
resto-directory |
||||
resto |
||||
lwt |
||||
]; |
||||
} |
@ -1,12 +0,0 @@ |
||||
{ lib, buildDunePackage, resto, resto-json, uri }: |
||||
|
||||
buildDunePackage { |
||||
pname = "ezresto"; |
||||
inherit (resto) src version meta useDune2 doCheck; |
||||
|
||||
propagatedBuildInputs = [ |
||||
uri |
||||
resto |
||||
resto-json |
||||
]; |
||||
} |
@ -0,0 +1,45 @@ |
||||
{ lib |
||||
, aiohttp |
||||
, buildPythonPackage |
||||
, fetchPypi |
||||
, poetry-core |
||||
, pydantic |
||||
, pythonOlder |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "huum"; |
||||
version = "0.5.0"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.9"; |
||||
|
||||
src = fetchPypi { |
||||
inherit pname version; |
||||
sha256 = "sha256-ldhAg9zGCEYvya01s6AHzALI4dS+d0R73c62YZyk19M="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ |
||||
poetry-core |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
aiohttp |
||||
pydantic |
||||
]; |
||||
|
||||
# Tests are not shipped and source not tagged |
||||
# https://github.com/frwickst/pyhuum/issues/2 |
||||
doCheck = false; |
||||
|
||||
pythonImportsCheck = [ |
||||
"huum" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "Library for for Huum saunas"; |
||||
homepage = "https://github.com/frwickst/pyhuum"; |
||||
license = with licenses; [ mit ]; |
||||
maintainers = with maintainers; [ fab ]; |
||||
}; |
||||
} |
Loading…
Reference in new issue