Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, stdenv, buildPythonPackage, fetchFromGitHub, pytestCheckHook, nix-update-script, setuptools, paup-cli, paupIntegration ? false,}:
let paupPath = if paupIntegration then lib.getExe paup-cli else "NONE";inbuildPythonPackage rec { pname = "dendropy"; version = "5.1.1";
pyproject = true; build-system = [ setuptools ];
src = fetchFromGitHub { owner = "jeetsukumaran"; repo = "dendropy"; tag = "v${version}"; hash = "sha256-Kg0we/hi3HgvFHoF93Qq/JuGgxqKS08vkA2ILCzxhZg="; };
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 ];
pythonImportsCheck = [ "dendropy" ];
passthru.updateScript = nix-update-script { };
meta = { description = "Python library for phylogenetic computing"; homepage = "https://jeetsukumaran.github.io/DendroPy/"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ unode pandapip1 ]; };}