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