depot/third_party/nixpkgs/pkgs/development/python-modules/texsoup/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

38 lines
811 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "texsoup";
version = "0.3.1";
pyproject = true;
src = fetchFromGitHub {
owner = "alvinwan";
repo = "TexSoup";
rev = "refs/tags/${version}";
hash = "sha256-XKYJycYivtrszU46B3Bd4JLrvckBpQu9gKDMdr6MyZU=";
};
nativeBuildInputs = [ setuptools ];
pythonImportsCheck = [ "TexSoup" ];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
substituteInPlace pytest.ini \
--replace "--cov=TexSoup" ""
'';
meta = with lib; {
description = "Fault-tolerant Python3 package for searching, navigating, and modifying LaTeX documents";
homepage = "https://github.com/alvinwan/TexSoup";
license = licenses.bsd2;
maintainers = [ ];
};
}