Commit 0dd3bfc7 authored by David Wronek's avatar David Wronek
Browse files

python3Packages.odsparsator: init at 1.14.0

parent bf4e057a
Loading
Loading
Loading
Loading
+42 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  odfdo,
  uv-build,
}:
buildPythonPackage (finalAttrs: {
  pname = "odsparsator";
  version = "1.14.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jdum";
    repo = "odsparsator";
    tag = "v${finalAttrs.version}";
    hash = "sha256-DpVWkspaZYYJHGYOrLte4JevH25xRzu38M2+QdFG22M=";
  };

  build-system = [ uv-build ];

  dependencies = [ odfdo ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail "uv_build>=0.9.0,<0.10.0" "uv_build"
    substituteInPlace tests/test_cli.py \
      --replace-fail '"odsparsator"' "\"$out/bin/odsparsator\""
  '';

  meta = {
    description = "Generate a json file from an OpenDocument Format .ods file";
    homepage = "https://github.com/jdum/odsparsator";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ ungeskriptet ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -11357,6 +11357,8 @@ self: super: with self; {
  odsgenerator = callPackage ../development/python-modules/odsgenerator { };
  odsparsator = callPackage ../development/python-modules/odsparsator { };
  oelint-data = callPackage ../development/python-modules/oelint-data { };
  oelint-parser = callPackage ../development/python-modules/oelint-parser { };