1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "texsoup"; 11 version = "0.3.1"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "alvinwan"; 16 repo = "TexSoup"; 17 rev = "refs/tags/${version}"; 18 hash = "sha256-XKYJycYivtrszU46B3Bd4JLrvckBpQu9gKDMdr6MyZU="; 19 }; 20 21 nativeBuildInputs = [ setuptools ]; 22 23 pythonImportsCheck = [ "TexSoup" ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 preCheck = '' 28 substituteInPlace pytest.ini \ 29 --replace "--cov=TexSoup" "" 30 ''; 31 32 meta = with lib; { 33 description = "Fault-tolerant Python3 package for searching, navigating, and modifying LaTeX documents"; 34 homepage = "https://github.com/alvinwan/TexSoup"; 35 license = licenses.bsd2; 36 maintainers = with maintainers; [ ]; 37 }; 38}