1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 hatch-vcs,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "orgparse";
12 version = "0.4.20250520";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "karlicoss";
17 repo = "orgparse";
18 tag = "v${version}";
19 hash = "sha256-y3mkGCZvikbmymgvPOWq4GLxoFmslXGm/cxR2PZ6DRM=";
20 };
21
22 build-system = [
23 hatchling
24 hatch-vcs
25 ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 pythonImportsCheck = [ "orgparse" ];
30
31 preCheck = ''
32 rm conftest.py
33 '';
34
35 disabledTestPaths = [
36 # Ignoring doc folder
37 "doc/"
38 ];
39
40 disabledTests = [
41 # AssertionError
42 "test_data[01_attributes]"
43 "test_data[03_repeated_tasks]"
44 "test_data[04_logbook]"
45 "test_level_0_timestamps"
46 ];
47
48 meta = with lib; {
49 description = "Emacs org-mode parser in Python";
50 homepage = "https://github.com/karlicoss/orgparse";
51 changelog = "https://github.com/karlicoss/orgparse/releases/tag/${src.tag}";
52 license = licenses.bsd2;
53 maintainers = with maintainers; [ twitchy0 ];
54 };
55}