mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-22 07:50:31 +08:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
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.20251020";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "karlicoss";
|
|
repo = "orgparse";
|
|
tag = "v${version}";
|
|
hash = "sha256-RJ+1HVI9OgbylBxdEztpQ4v0MG0PUFqXlFfe0vsDaTg=";
|
|
};
|
|
|
|
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 = {
|
|
description = "Emacs org-mode parser in Python";
|
|
homepage = "https://github.com/karlicoss/orgparse";
|
|
changelog = "https://github.com/karlicoss/orgparse/releases/tag/${src.tag}";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ twitchy0 ];
|
|
};
|
|
}
|