python3Packages.dendropy: 4.5.1 -> 5.0.2
This commit is contained in:
parent
2b8abed1f3
commit
0c288176f8
@ -1,45 +1,54 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
|
stdenv,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
pythonOlder,
|
pythonOlder,
|
||||||
|
nix-update-script,
|
||||||
|
setuptools,
|
||||||
|
paup,
|
||||||
|
paupIntegration ? false,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
paupPath = if paupIntegration then lib.getExe paup else "NONE";
|
||||||
|
in
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "dendropy";
|
pname = "dendropy";
|
||||||
version = "4.5.1";
|
version = "5.0.2";
|
||||||
format = "setuptools";
|
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
pyproject = true;
|
||||||
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jeetsukumaran";
|
owner = "jeetsukumaran";
|
||||||
repo = pname;
|
repo = "dendropy";
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-FP0+fJkkFtSysPxoHXjyMgF8pPin7aRyzmHe9bH8LlM=";
|
hash = "sha256-OiFei/6226FDtL4w1XrXL2OVn3/hfQwnIhTzM4OneKc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace '["pytest-runner"],' '[],'
|
||||||
|
|
||||||
|
substituteInPlace src/dendropy/interop/paup.py \
|
||||||
|
--replace 'PAUP_PATH = os.environ.get(metavar.DENDROPY_PAUP_PATH_ENVAR, "paup")' 'PAUP_PATH = os.environ.get(metavar.DENDROPY_PAUP_PATH_ENVAR, "${paupPath}")'
|
||||||
|
'';
|
||||||
|
|
||||||
nativeCheckInputs = [ pytestCheckHook ];
|
nativeCheckInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
disabledTests = [
|
|
||||||
# FileNotFoundError: [Errno 2] No such file or directory: 'paup'
|
|
||||||
"test_basic_split_count_with_incorrect_rootings_raises_error"
|
|
||||||
"test_basic_split_count_with_incorrect_weight_treatment_raises_error"
|
|
||||||
"test_basic_split_counting_under_different_rootings"
|
|
||||||
"test_group1"
|
|
||||||
# AssertionError: 6 != 5
|
|
||||||
"test_by_num_lineages"
|
|
||||||
# AttributeError: module 'collections' has no attribute 'Iterable'
|
|
||||||
"test_findall_multiple"
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "dendropy" ];
|
pythonImportsCheck = [ "dendropy" ];
|
||||||
|
|
||||||
meta = with lib; {
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
|
meta = {
|
||||||
description = "Python library for phylogenetic computing";
|
description = "Python library for phylogenetic computing";
|
||||||
homepage = "https://dendropy.org/";
|
homepage = "https://jeetsukumaran.github.io/DendroPy/";
|
||||||
license = licenses.bsd3;
|
license = lib.licenses.bsd3;
|
||||||
maintainers = with maintainers; [ unode ];
|
maintainers = with lib.maintainers; [
|
||||||
|
unode
|
||||||
|
pandapip1
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user