Something went wrong. Try again.
lol
Something went wrong. Try again.
1.2 kB · 53 lines
Nix
at master
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.0.8";
pyproject = true; build-system = [ setuptools ];
src = fetchFromGitHub { owner = "jeetsukumaran"; repo = "dendropy"; tag = "v${version}"; hash = "sha256-AmKm9V4XZQRuAfe0R5r5/wicno9iTZ6nbwHyHvMijz0="; };
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 ]; };}