1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 lxml,
7 unittestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "ezodf";
12 version = "0.3.2";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "T0ha";
17 repo = "ezodf";
18 tag = version;
19 hash = "sha256-d66CTj9CpCnMICqNdUP07M9elEfoxuPg8x1kxqgXTTE=";
20 };
21
22 build-system = [
23 setuptools
24 ];
25
26 dependencies = [
27 lxml
28 ];
29
30 nativeCheckInputs = [
31 unittestCheckHook
32 ];
33
34 unittestFlags = [
35 "tests"
36 ];
37
38 pythonImportsCheck = [
39 "ezodf"
40 ];
41
42 meta = {
43 description = "Extract, add, modify, or delete document data in OpenDocument (ODF) files";
44 homepage = "https://github.com/T0ha/ezodf";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ zhaofengli ];
47 };
48}