Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
hatch-vcs,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "orgparse";
|
|
version = "0.4.20250520";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "karlicoss";
|
|
repo = "orgparse";
|
|
tag = "v${version}";
|
|
hash = "sha256-y3mkGCZvikbmymgvPOWq4GLxoFmslXGm/cxR2PZ6DRM=";
|
|
};
|
|
|
|
build-system = [
|
|
hatchling
|
|
hatch-vcs
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "orgparse" ];
|
|
|
|
preCheck = ''
|
|
rm conftest.py
|
|
'';
|
|
|
|
disabledTestPaths = [
|
|
# Ignoring doc folder
|
|
"doc/"
|
|
];
|
|
|
|
disabledTests = [
|
|
# AssertionError
|
|
"test_data[01_attributes]"
|
|
"test_data[03_repeated_tasks]"
|
|
"test_data[04_logbook]"
|
|
"test_level_0_timestamps"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Emacs org-mode parser in Python";
|
|
homepage = "https://github.com/karlicoss/orgparse";
|
|
changelog = "https://github.com/karlicoss/orgparse/releases/tag/${src.tag}";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ twitchy0 ];
|
|
};
|
|
}
|