1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools-scm, 6 pythonOlder, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "newick"; 12 version = "1.9.0"; 13 format = "pyproject"; 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "dlce-eva"; 18 repo = "python-newick"; 19 rev = "v${version}"; 20 hash = "sha256-TxyR6RYvy2oIcDNZnHrExtPYGspyWOtZqNy488OmWwk="; 21 }; 22 23 nativeBuildInputs = [ setuptools-scm ]; 24 25 postPatch = '' 26 # remove coverage arguments to pytest 27 sed -i '/--cov/d' setup.cfg 28 ''; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 pythonImportsCheck = [ "newick" ]; 33 34 meta = with lib; { 35 description = "A python package to read and write the Newick format"; 36 homepage = "https://github.com/dlce-eva/python-newick"; 37 license = licenses.asl20; 38 maintainers = with maintainers; [ alxsimon ]; 39 }; 40}