python3Packages.odsparsator: init at 1.14.0
Signed-off-by: David Wronek <david.wronek@mainlining.org>
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
{
|
||||
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 ];
|
||||
};
|
||||
})
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user