about summary refs log tree commit diff
path: root/pkgs/development/python-modules/texsoup/default.nix
blob: da59b2fc28bc50361a1bd0c1ab0dc45af31690d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ 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 = with maintainers; [ ];
  };
}